sudo: no tty present and no askpass program specified
Tom H
tomh0665 at gmail.com
Fri Feb 26 03:37:30 UTC 2010
>> > 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
> Thanks for the fast response, Tom!
> I understand that sudo refuses to ask for a password if there's no tty.
> But I have explicitly told it _not_ to ask with the NOPASSWD option. So
> there's no reason for sudo to refuse, since it should not try to ask in
> the first place.
You're welcome.
The point of the link was that if you add
Defaults visiblepw
to
/etc/sudoers
"You can restore the old behavior"
More information about the ubuntu-users
mailing list