sudoers disaster

ulrich steffens ulrich at barfuss-jerusalem.org
Wed Sep 28 20:51:53 UTC 2005


Am Mittwoch, den 28.09.2005, 21:19 +0200 schrieb R.L. Reingard:
> Hello all,
> i guess i did make a great mistake.
> cause of the ongoing discussion on Root/Sudo/Passwords, i made an other  
> user, put this new user into the group 'Admin' and tested if this new user  
> can use sudo with its own password. test was okay.
> then i took the default user (which had sudo rights) out of the group  
> 'Admin' and tested if the default user cannot anymore use sudo. test  
> passed.
> then i switched to the new user AND ... now a sudo with the new users  
> password FAILED.
> no a have two user accounts AND none of them has sudoers rights.
> what the hack is that?
> please help,
> René
> 
and according to RTFM you should use 'visudo' to edit the sudoers file.

man visudo

NAME
       visudo - edit the sudoers file

SYNOPSIS
       visudo [ -c ] [ -f sudoers ] [ -q ] [ -s ] [ -V ]

DESCRIPTION
       visudo edits the sudoers file in a safe fashion, analogous to
       vipw(8).visudo locks the sudoers file against multiple
       simultaneous edits, provides basic sanity checks, and checks for
       parse errors.  If the sudoers file is currently being edited you
       will receive a message to try again later.






More information about the ubuntu-users mailing list