sudo: no tty present and no askpass program specified
Tom H
tomh0665 at gmail.com
Thu Feb 25 19:58:13 UTC 2010
> 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.
http://www.sudo.ws/pipermail/sudo-users/2009-August/004140.html
More information about the ubuntu-users
mailing list