I need to run something as sudo without a password, so I used
visudo and added this to my
MYUSERNAME ALL = NOPASSWD: /path/to/my/program
Then I tried it out:
$ sudo /path/to/my/program [sudo] password for MYUSERNAME:
Why does it ask for a password? How can I run/use commands as root with a non-root user, without asking for a password?