Results 1 to 2 of 2
I'd like to setup a particular user with the ability to run all the scripts in a particular directory (which require sudo) without being prompted for their password. To test ...
- 10-28-2008 #1Linux Newbie
- Join Date
- May 2007
- Posts
- 106
[SOLVED] /etc/sudoers help
I'd like to setup a particular user with the ability to run all the scripts in a particular directory (which require sudo) without being prompted for their password. To test this I first attempted to setup this user to be able to run ANY sudo command without being prompted. Here's what I did:
sudo visudo -f /etc/sudoers
then, under the below comment, I added this line
# User privilege specification
<user> localhost = NOPASSWD: ALL
(where <user> is my username)
I saved the file, but it didn't seem to work. I rebooted and tried again. Same result. Interestingly the file contains the following line as well:
# Uncomment to allow members of group sudo to not need a password
%sudo ALL=NOPASSWD: ALL
As you can see I uncommented the line. Then added the user account to the sudo group. But still no dice.
Any ideas?
- 10-28-2008 #2Linux Newbie
- Join Date
- May 2007
- Posts
- 106
I read this page and it seems the problem was the spacing. I changed it to the below and now it works.
user ALL = NOPASSWD: ALL
(I'm replying just in case someone else has the same problem)


