[sudo-users] !requiretty ignored

Todd C. Miller Todd.Miller at courtesan.com
Fri Aug 14 12:44:03 MDT 2015


On Fri, 14 Aug 2015 20:14:21 +0200, Han Boetes wrote:

> ~% grep tty .xsession-errors
> sudo: no tty present and no askpass program specified
> 
> What am I missing here?

You get that message when sudo needs to prompt for a password and
there is no tty present.  It is not related to requiretty.

Do you get the same error if you give sudo an explicit pathname
to run.  E.g. "sudo /usr/sbin/s2ram"

 - todd


More information about the sudo-users mailing list