sudoers

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Michael Havens
Date:  
To: PLUG
Subject: sudoers
I was wondering: these are the instructions I was given to make it so I
don't need to input my password after I sudo.
---
sudo visudo
<password>

comment out the line:

%sudo ALL=(ALL:ALL) ALL

and add a new line below it like this:

%sudo ALL=(ALL) NOPASSWD: ALL

sudo useradd -G sudo <user>
---
I was thinking that with the script being like that I probably don't need
the last line because the way it is I am telling it no one needs a password
with sudo. It would probably be more secure to have:

%sudo ALL=(ALL) NOPASSWD: <desired users>

is that correct? If I had multiple users who I wanted to not use a password
would I separate the users with a space or comma? If I only wanted one user
to be able to sudo it would be:

%sudo <user>=(ALL) NOPASSWD: <user>

what is the point of th ALL surrounded by parentheses?
:-)~MIKE~(-:
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss