[sudo-users] !requiretty ignored, but not always.

Todd C. Miller Todd.Miller at courtesan.com
Fri Nov 21 12:23:27 MST 2014


On Fri, 21 Nov 2014 18:51:34 +0100, Han Boetes wrote:

> sudo: no tty present and no askpass program specified

That message has nothing to do with requiretty.  The requiretty
message is "sorry, you must have a tty to run sudo".

It sounds like your NOPASSWD is not effective, most likely because
there is another rule later on in sudoers that matches without it
(sudo uses the last match).  Your cron job will run as long as the
ticket file is valid but when that expires you will get the "no tty
present and no askpass program specified" error.

You can probably fix your problem by reordering your rules.

 - todd


More information about the sudo-users mailing list