Manjaro root uncomment

im confused on manjaro nano /etc/sudoers this file below:

root ALL=(ALL:ALL) ALL

Uncomment to allow members of group wheel to execute any command

wheel ALL=(ALL:ALL) ALL

Same thing without a password

wheel ALL=(ALL:ALL) NOPASSWD: ALL

Uncomment to allow members of group sudo to execute any command

sudo ALL=(ALL:ALL) ALL

Uncomment to allow any user to run sudo if they know the password

of the user they are running the command as (root by default).

Defaults targetpw # Ask for the password of the target user

ALL ALL=(ALL:ALL) ALL # WARNING: only use this together with 'Defaults targ>

the weel is not uncomment but i can get sudo using this command: sudo bash den direct to root.
i just want to remove sudo on my user account. and if i want to use sudo i use directly root instead

check your other post, same here:
it’s not readable, format it in a way that others can read and understand

1 Like

Why not just remove the user from the wheel group?
I suppose sudo could be removed completely, but if the goal is to just remove the admin rights to the user, remove the user from the wheel group.

If you remove sudo, how would you use sudo su? xD

Be careful though so you are actually still able to log in as root, or change to root.

1 Like

Similar to the other post you are missing the *.d path.
I’m guessing you have something like:

/etc/sudoers.d/10-installer

%wheel ALL=(ALL) ALL

(in which case you may want to comment out that line or delete the file, etc)
((at least for me, this file is not owned by any package, so it should not return on updates))

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.