LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-04-2003, 12: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
 
  


Reply



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 03:20 PM
Problem with sudo SwannAnderson Linux - Newbie 5 10-03-2005 07:10 PM
sudo problem drigz Linux - Software 4 06-21-2004 03:46 PM
Problem with sudo punx120 Linux - Software 0 05-08-2004 10:43 AM
Sudo starting problem satimis Linux - Software 1 10-26-2003 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:58 PM.

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