Restricting changing passwd

Yocom, Ray ryocom at
Tue Aug 1 11:47:00 EDT 2000

Are you sure you have disabled the password change for root.  Depending the
flavor of UNIX, 
/usr/bin/passwd with no argument will use the "effective" user as opposed to
the user logged in on your terminal.  When you sudo /usr/bin/passwd the
effective user is root thus changing the password for root.  The only fix I
know of in this case and the best fix for your other issue is to build a
wrapper for the /usr/bin/passwd command.  Several nice examples have been
provided in previous threads.  You could check against your "system" or
"adm" group in /etc/group so that whenever you added a new admin to your
system they would automatically be excluded from the sudo password change.

-----Original Message-----
From: Ritesh Raj Joshi [mailto:ritesh at]
Sent: Tuesday, August 01, 2000 3:20 AM
To: sudo-users at
Subject: Restricting changing passwd

HI all!
I am using CU Sudo version 1.5.3 and trying to restrict users from
changing passwd of other collegues.
I have successfully done this for "root" with  !/usr/bin/passwd root .
But how do I restrict for a list of users without having to repeat the
above mentioned command for each and every user.
Is there some kind of wildcards or aliasing that can be employed here.
Thanks in advance ...



  |  r i t e s h   r a j   j o s h i
  |  system administrator
  |  hotline:240920

sudo-users mailing list <sudo-users at>
For list information, options, or to unsubscribe, visit:

More information about the sudo-users mailing list