LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 10-12-2003, 06:31 PM   #1
wbdune
LQ Newbie
 
Registered: Oct 2003
Location: Indy
Posts: 14

Rep: Reputation: 0
Sudo question.


I'm a newb to Linux, I'm taking a System Admin Class thats using Linux, and I'm not totally comfortable with it yet.

I need to enable a user, sorr, to run the /sbin/shutdown and /bin/kill commands with root privileges. What would I do from beginning to end to accomplish this goal?

I've already tried to use the visudo command to edit the sudoers file. I added sorr under the user specifications section.
sorr ALL= /sbin/shutdown, /bin/kill NOPASSWD: ALL

For some reason I can't execute the shutdown command.
sorr: you must be root to use this!

Thanks,


Last edited by wbdune; 10-12-2003 at 09:38 PM.
 
Old 10-12-2003, 06:33 PM   #2
littis
LQ Newbie
 
Registered: Dec 2002
Location: usa
Distribution: LMDE
Posts: 22

Rep: Reputation: 15
try:

sorr ALL=NOPASSWD: /sbin/shutdown, /bin/kill


should work.




Scott
 
Old 10-14-2003, 12:40 AM   #3
wbdune
LQ Newbie
 
Registered: Oct 2003
Location: Indy
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for the replay , your response worked
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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
sudo mv question howarddevore Linux - General 5 08-16-2005 11:59 AM
sudo question satimis Linux - Software 3 12-07-2004 08:47 AM
Sudo question satimis Fedora 6 11-24-2004 08:58 PM
sudo question darthtux Linux - General 1 06-07-2002 02:27 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration