sudo: no tty present and no askpass program specified
Josef Wolf
jw at raven.inka.de
Thu Feb 25 19:35:31 UTC 2010
Hello,
On karmic, I have put the following line into my sudoers file
naclt ALL = NOPASSWD: /usr/local/bin/naclient
to allow execution of this program as root from remote hosts. So from the
remote host, I do
/usr/bin/ssh -i /home/me/.ssh/naclt-dsa \
-o "ServerAliveInterval 60" \
-o "ServerAliveCountMax 3" \
naclt at server.my.domain \
/usr/bin/sudo /usr/local/bin/naclient version
But sudo errors out:
sudo: no tty present and no askpass program specified
Why is sudo trying to ask a password here? Did it not get the NOPASSWD
option?
This works perfectly fine with jaunty with exactly the same sudoers file.
Any ideas?
More information about the ubuntu-users
mailing list