Help with Cmnd_Alias's

Brent n9bc at netnet.net
Thu Apr 13 18:08:16 EDT 2000


I'm about to pull my hair out... I'm pretty new at this. So please bare
with me.
First here is my config.

User_Alias     SUPPORT = daves, ryan, seaker, brentc, rgraf, brettj, \
                bress, gbl, swillis, bhall

# Cmnd alias specification

Cmnd_Alias  CHPASS=/usr/local/sbin/changepass
Cmnd_Alias
SUPPORT1=/usr/loca/sbin/adduser,/usr/local/sbin/addemail,/usr/local/sbin/rmuser



# User specification
root    ALL=(ALL) ALL

SUPPORT ALL = CHPASS, SUPPORT1

My problem is that when one of the users try and do a 'sudo changepass
brentc'
I get this error...

Sorry, user brentc is not allowed to execute "changepass brentc" as root

Here's the kicker  if I do use the full path like  'sudo
/usr/local/sbin/changepass brentc'
it works fine. I get the same for the other Alias. Any Ideas?

Thanks,
Brent






More information about the sudo-users mailing list