Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save marczykm/3fcc0acd93c8831aa283ad33bc41127d to your computer and use it in GitHub Desktop.

Select an option

Save marczykm/3fcc0acd93c8831aa283ad33bc41127d to your computer and use it in GitHub Desktop.

I need to run something as sudo without a password, so I used visudo and added this to my sudoers file:

MYUSERNAME ALL = NOPASSWD: /path/to/my/program

Then I tried it out:

[sudo] password for MYUSERNAME: ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment