LinuxQuestions.org
Register a domain and help support LQ
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 06-19-2008, 08:18 AM   #1
lumix
Member
 
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

//no?
 
Old 06-19-2008, 08:42 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,747

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
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:
Code:
joe    ALL = (root) NOPASSWD: ALL
 
Old 06-19-2008, 09:28 AM   #3
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
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
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Original Poster
Rep: Reputation: 30
BigRig:

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

Agrouf:

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

Thanks to all for the replies.
 
  


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


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


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