LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  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: 16
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



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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 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