Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-04-2003, 01:48 AM   #1
slackware stu
LQ Newbie
Registered: Sep 2003
Distribution: slackware
Posts: 3

Rep: Reputation: 0
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 04:20 PM
Problem with sudo SwannAnderson Linux - Newbie 5 10-03-2005 08:10 PM
sudo problem drigz Linux - Software 4 06-21-2004 04:46 PM
Problem with sudo punx120 Linux - Software 0 05-08-2004 11:43 AM
Sudo starting problem satimis Linux - Software 1 10-26-2003 06:37 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration