The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sudoers tjmannonline UNIX for Dummies Questions & Answers 5 06-13-2009 04:12 AM
sudoers file questions hemangjani UNIX for Dummies Questions & Answers 2 04-21-2008 01:35 PM
sudoers on HP 11.11 dhlopomo UNIX for Dummies Questions & Answers 2 01-18-2008 06:03 AM
Parsing Sudoers File jasondavey UNIX for Advanced & Expert Users 3 08-30-2007 08:00 PM
sudoers file and Shutdown problem cobdeng UNIX for Dummies Questions & Answers 1 09-30-2005 09:20 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-02-2004
whatisthis's Avatar
whatisthis whatisthis is offline
Registered User
  
 

Join Date: Aug 2004
Posts: 175
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
~
~
~
  #2 (permalink)  
Old 12-02-2004
locustfurnace locustfurnace is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2004
Posts: 232
Do you need the full path to shutdown?

/sbin/shutdown


# %users localhost=/sbin/shutdown -h now
  #3 (permalink)  
Old 12-02-2004
whatisthis's Avatar
whatisthis whatisthis is offline
Registered User
  
 

Join Date: Aug 2004
Posts: 175
shutdown

I don't think so.
It should work this way since I created alias in the file?
  #4 (permalink)  
Old 12-02-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
A command alias is used only inside the sudoers file. It doesn't create an external alias that the user can employ.
  #5 (permalink)  
Old 12-02-2004
whatisthis's Avatar
whatisthis whatisthis is offline
Registered User
  
 

Join Date: Aug 2004
Posts: 175
sudoers

Thanks,Perderabo!

I had it worked. It doesn't make sense if alias only used in the sudoers file....


THANKS for the help!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:40 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0