sudo: no tty present and no askpass program specified

Josef Wolf jw at
Fri Feb 26 15:52:13 UTC 2010

On Thu, Feb 25, 2010 at 10:37:30PM -0500, Tom H wrote:

> >> > Why is sudo trying to ask a password here? Did it not get the NOPASSWD
> >> > option?

> >>

> > 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"

Ah, I see now what you mean.

Strange enough, it works now, without any changes. No idea what the problem
could have been.

More information about the ubuntu-users mailing list