Notes - GNU/Linux (general)

Return to note list
Run a command as root with sudo without password prompts

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.