sudoers
Michael Havens
bmike1 at gmail.com
Mon Jul 14 19:48:07 MST 2014
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~(-:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20140714/252caa69/attachment.html>
More information about the PLUG-discuss
mailing list