Edit sudoers with visudo
.
Add the following line: *username* ALL = (root) NOPASSWD: */path/to/command*
Make sure the line comes after any password-requiring lines. The easiest way to make sure is to add it at the bottom of sudoers.
Return to note list
Edit sudoers with visudo
.
Add the following line: *username* ALL = (root) NOPASSWD: */path/to/command*
Make sure the line comes after any password-requiring lines. The easiest way to make sure is to add it at the bottom of sudoers.