[sudo-users] Using wild cards in a command path
Eric Bradley
ebradley4 at csc.com
Mon Jul 28 15:28:42 EDT 2008
I want to allow user1 and user2 to run any command in the path
/opt/networker/bin as root. In my sodoers file I have the following:
User_Alias U_APP_NETWORKER=user1, user2
Cmnd_Alias C_APP_NETWORKER=\
/opt/networker/bin/*
Runas_Alias R_ACCOUNT=root
root ALL=(ALL) ALL
U_APP_NETWORKER ALL=(R_ACCOUNT) NOPASSWD: C_APP_NETWORKER
When I Iog in as user1 and run sudo /opt/networker/bin/command.sh I get:
Sorry, user user1 is not allowed to execute '/opt/networker/bin/tempo.sh'
as root on hostname.
Can anyone tell me what I'm doing wrong?
Thanks,
Ric Bradley
More information about the sudo-users
mailing list