Stop sudo from asking for a password

From Wiki
Revision as of 18:51, 24 March 2017 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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