[sudo-users] How to disable ( deny ) user to change the password of root

edwardspl at ita.org.mo edwardspl at ita.org.mo
Mon Nov 17 03:49:05 EST 2008


Dear All,

For the sudo setting ( visudo ) :

User_Alias      SYSADM = manager

Cmnd_Alias    NOROOT = !/usr/bin/passwd root
Cmnd_Alias    USER = /usr/sbin/adduser, /usr/bin/passwd, /bin/chown, 
/usr/sbin/userdel

SYSADM    MH = (ALL)    NOROOT,USER

BUT the test result as the following :

[manager at xxx ~]$ sudo passwd root
Changing password for user root.
New UNIX password:

So, what wrong of the config ?

Many thnak for your hints...

Edward.



More information about the sudo-users mailing list