Passwordless sudo setup

If you want to give permissions to some users who are in a special group (probably sudo) to use sudo without asking password, you can do this simple in two steps:

First of all, you must add related users to group sudo. For example we can add bob to group sudo:

adduser bob sudo

And after that type visudo command and add or comment out following line:

%sudo ALL=NOPASSWD: ALL

It says that password not required for the users who are in group of sudo.





Hayabusa by Selcuk Miynat over 5 years ago Reply this comment
It didn't work for me. But also try this one: Type "visudo" command as root (without quotes) and add this line to the "User privilege specification" part: username ALL=(ALL) NOPASSWD: ALL
You must be login first or sign-up for an account to post comments.