LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sudo - problem with cmnd_alias (https://www.linuxquestions.org/questions/linux-software-2/sudo-problem-with-cmnd_alias-100046/)

slackware stu 10-04-2003 12:48 AM

sudo - problem with cmnd_alias
 
my sudo commands work and I think it's great but I'm having a problem getting the command aliases to work.

below is my visudo...

#Host alias specification
#User alias specification
#Cmnd alias specification
Cmnd_Alias OFF = /sbin/poweroff
Cmnd_Alias DIAL = /usr/sbin/ppp-go
Cmnd_Alias HANG = /usr/sbin/ppp-off
#Defaults specification
#User privilege specification
root = ALL=(ALL) ALL
brandonweinberg = ALL= OFF, DIAL, HANG

example of my problem
when I type sudo /sbin/poweroff it works
when I type sudo OFF the command is not found


All times are GMT -5. The time now is 05:14 AM.