I have a simple shell script that uses the
killall command. I would like to run this command without needing to enter my password. I've brought up
visudo and inserted the following line into it:
anthony localhost = (root) NOPASSWD: /usr/sbin/myscript
I close Terminal, reopen it, and issue my script command. I am immediately greeted with a prompt for my password.
What am I doing wrong? Is this the proper way to do this?