![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sudoers | tjmannonline | UNIX for Dummies Questions & Answers | 4 | 05-13-2008 06:45 PM |
| sudoers file questions | hemangjani | UNIX for Dummies Questions & Answers | 2 | 04-21-2008 10:35 AM |
| sudoers on HP 11.11 | dhlopomo | UNIX for Dummies Questions & Answers | 2 | 01-18-2008 03:03 AM |
| Parsing Sudoers File | jasondavey | UNIX for Advanced & Expert Users | 3 | 08-30-2007 05:00 PM |
| sudoers file and Shutdown problem | cobdeng | UNIX for Dummies Questions & Answers | 1 | 09-30-2005 06:20 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
sudoers file
Hi,
I have edited 'sudoers' file to allow 'cads' user shutdown the system without providing a password. Can someone tell me what's wrong with my file? It's not working when I 'sudo SHUTDOWN' command: sudo: SHUTDOWN: command not found Thanks a lot! # Host alias specification Host_Alias DIALER=dmil3 # User alias specification # Cmnd alias specification Cmnd_Alias SHUTDOWN = /usr/cads/fldshut # Override built-in defaults ## Defaults syslog=auth Defaults: DIALER !lecture # User privilege specification cads DIALER=NOPASSWD: SHUTDOWN ~ ~ ~ |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Do you need the full path to shutdown?
/sbin/shutdown # %users localhost=/sbin/shutdown -h now |
|
#3
|
||||
|
||||
|
shutdown
I don't think so.
It should work this way since I created alias in the file? |
|
#4
|
||||
|
||||
|
A command alias is used only inside the sudoers file. It doesn't create an external alias that the user can employ.
|
|
#5
|
||||
|
||||
|
sudoers
Thanks,Perderabo!
I had it worked. It doesn't make sense if alias only used in the sudoers file.... THANKS for the help! |
||||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|