Add sudo group back to sudoers #3

Closed
opened 2024-06-17 15:13:00 +02:00 by xavi · 4 comments
Collaborator

Hi,

As one of my first actions inside the new VPS, my extremely stupid self commented out the following line from /etc/sudoers:

%sudo    ALL=(ALL:ALL) NOPASSWD:ALL

Instead of rewriting it as:

%sudo    ALL=(ALL:ALL) ALL

So I have effectively locked myself out from root access via sudo(8). Could you please apply the suggestion above as root so as to gain access?

Thank you and forgive the inconvenience!

Hi, As one of my first actions inside the new VPS, my extremely stupid self commented out the following line from `/etc/sudoers`: ``` %sudo ALL=(ALL:ALL) NOPASSWD:ALL ``` Instead of rewriting it as: ``` %sudo ALL=(ALL:ALL) ALL ``` So I have effectively locked myself out from `root` access via `sudo(8)`. Could you please apply the suggestion above as `root` so as to gain access? Thank you and forgive the inconvenience!
neox added the
en cours
label 2024-06-17 16:29:15 +02:00
Owner

Should be solved.

Should be solved.
neox added
résolu
and removed
en cours
labels 2024-06-17 17:06:02 +02:00
Author
Collaborator

Thank you for the quick reply. Unfortunately, it looks like there is still something wrong. cat /etc/sudoers would not allow me to read the file because of insufficient permissions, but visudo(8) did point out a syntax error:

$ sudo visudo
/etc/sudoers:50:20: syntax error
%sudo   ALL=(ALL:ALL)
                   ^
Thank you for the quick reply. Unfortunately, it looks like there is still something wrong. `cat /etc/sudoers` would not allow me to read the file because of insufficient permissions, but `visudo(8)` did point out a syntax error: ``` $ sudo visudo /etc/sudoers:50:20: syntax error %sudo ALL=(ALL:ALL) ^ ```
neox added
bogue
en cours
and removed
résolu
labels 2024-06-17 17:23:49 +02:00
Owner

Fixed.

Fixed.
neox removed the
bogue
en cours
labels 2024-06-17 17:27:39 +02:00
Author
Collaborator

The syntax error has been finally fixed. Thank you!

The syntax error has been finally fixed. Thank you!
xavi closed this issue 2024-06-17 17:27:39 +02:00
neox added the
résolu
label 2024-06-17 17:27:39 +02:00
neox reopened this issue 2024-06-17 17:27:45 +02:00
neox closed this issue 2024-07-03 23:48:13 +02:00
Sign in to join this conversation.
No description provided.