sudo: no tty present and no askpass program specified
tomh0665 at gmail.com
Fri Feb 26 17:52:41 UTC 2010
>> The point of the link was that if you add
>> Defaults visiblepw
>> "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.
If the problem comes back, this is from the sudoers man page:
visiblepw By default, sudo will refuse to run if the user must
enter a password but it is not possible to disable echo
on the terminal. If the visiblepw flag is set, sudo
will prompt for a password even when it would be
visible on the screen. This makes it possible to run
things like "rsh somehost sudo ls" since rsh(1) does
not allocate a tty. This flag is off by default.
More information about the ubuntu-users