Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-12-2003, 07:31 PM   #1
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!


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

Rep: Reputation: 15

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

should work.

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

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


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 04:20 PM
sudo mv question howarddevore Linux - General 5 08-16-2005 12:59 PM
sudo question satimis Linux - Software 3 12-07-2004 09:47 AM
Sudo question satimis Fedora 6 11-24-2004 09:58 PM
sudo question darthtux Linux - General 1 06-07-2002 03:27 AM > Forums > Linux Forums > Linux - Newbie

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

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