Stop sudo from asking for a password

From Wiki
Jump to: navigation, search

If you're like me and get tired of typing in a password all the time you can add this to your sudoers file.

sudo visudo

Add this line.

user_name ALL = NOPASSWD: ALL

For example, to allow a user to run the ssh command using sudo add this line.

user1 ALL=(root) NOPASSWD: /usr/bin/ssh