<p dir="ltr">Usually the sudoers file has a commented line like this for both the sudo group and the more traditional wheel group. I usually use the wheel group to have access to all without password, and sudo group to have access with password.</p>
<p dir="ltr">Much easier to administer.</p>
<p dir="ltr">Kevin </p>
<div class="gmail_quote">On Jul 14, 2014 8:48 PM, "Michael Havens" <<a href="mailto:bmike1@gmail.com">bmike1@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>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.</div><div>---</div><div>sudo visudo</div><div><password></div><div><br></div>
<div>comment out the line:</div><div><br></div><div> %sudo ALL=(ALL:ALL) ALL </div><div><br></div><div>and add a new line below it like this:</div><div><br></div><div> %sudo ALL=(ALL) NOPASSWD: ALL</div><div><br></div>
<div> sudo useradd -G sudo <user></div><div>---</div><div>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:</div>
<div><br></div><div><div> %sudo ALL=(ALL) NOPASSWD: <desired users> </div></div><div><br></div><div>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:</div>
<div><br></div><div> %sudo <user>=(ALL) NOPASSWD: <user></div><div><br></div><div>what is the point of th ALL surrounded by parentheses?</div><div>:-)~MIKE~(-:</div>
</div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div>