[sudo-users] passwd -l, passwd -u, passwd -S in sudoer

christian.peper at kpn.com christian.peper at kpn.com
Tue Apr 15 08:26:49 EDT 2008


> -----Original Message-----
> From: sudo-users-bounces at courtesan.com 
> [mailto:sudo-users-bounces at courtesan.com] On Behalf Of Greg Harrington
> Sent: Tuesday, April 15, 2008 6:37 AM
> To: sudo-users at sudo.ws
> Subject: [sudo-users] passwd -l, passwd -u, passwd -S in sudoer
> 
> HI i want the users in SYSOPS alias to be able to do 'sudo 
> passwd -l 'someuser' but they get Sorry, user 'me' is not 
> allowed to execute '/usr/bin/passwd -l 'someuser'' as root on 
> 'ourserver'
> this is in our sudoer file.
> 
> User_Alias      SYSOPS = 'my user list"
> 
> SYSOPS  ALL = /usr/bin/passwd [A-z]*, !/usr/bin/passwd root

Greg,

Test your sudo rights using sudo -l. You should see exactly what you're
allowed to do and what not.

Otherwise, the only thing I can see is that you only allow usernames
that start with a capital letter. So 'User' will be allowed whereas
'user' will be refused.

Chris.



More information about the sudo-users mailing list