Help answer threads with 0 replies.
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 06-19-2008, 08:18 AM   #1
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Rep: Reputation: 30
Why does "joe ALL=NOPASSWD: ALL" in sudoers not work?

if ( "ray rushmore = NOPASSWD: /bin/kill" ) //according to man-page
then { so should the example in the subject line. } //according to reason

Old 06-19-2008, 08:42 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
The example you cite from the man page gives ray rushmore only one command: /bin/kill. It doesn't give him ALL commands.

I believe this is what you are looking for:
joe    ALL = (root) NOPASSWD: ALL
Old 06-19-2008, 09:28 AM   #3
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
sudoers file is read from top to bottom and a rule can override another.
A common mistake is to place rules that overwrite each other.
If you want that to work for sure, make sure it is the very last command.
Old 06-19-2008, 12:04 PM   #4
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Original Poster
Rep: Reputation: 30

Note subject line, and use of "joe" as an example from which to extrapolate.


You are correct, sir. Putting at bottom did the trick. Just like a firewall (some, anyway).

Thanks to all for the replies.


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
How to edit "sudoers" file using visudo maniac matt Linux - Newbie 11 06-22-2013 08:38 AM
sudoers problem with using NOPASSWD in conjuction with runas everett-tek Linux - Newbie 3 07-29-2009 07:36 PM
LXer: How and When "Average Joe" and "Geek" Get New PCs (Comic) LXer Syndicated Linux News 2 05-25-2008 03:58 PM
Any way to get "Alice"; "Call of Duty" series and "Descent 3" to work? JBailey742 Linux - Games 13 06-23-2006 01:34 PM
"Joe Jobbing" ignhie Linux - Security 4 07-15-2005 10:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:51 PM.

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
Open Source Consulting | Domain Registration