I'm trying to add a new sudoers file using sudo visudo -f /etc/sudoers.d/abe
. I added the contents:
# Allow automatic update of abe
matt ALL=(root) NOPASSWD: python /home/matt/token-abe/setup.py install --force
But when I try to write and quit, I get "What Now?" with no error:
$ sudo visudo -f /etc/sudoers.d/abe
[sudo] password for matt:
What now? e
What now?
I'm using Debian 7.
Best Answer
There is an error in the file you just edited, this is why visudo is complaining. From http://www.courtesan.com/sudo/man/1.7.10/visudo.man.html:
About your error, isn't the "python" command missing the complete path? I mean: