<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>