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

Han Boetes hboetes at gmail.com
Fri Nov 21 10:51:34 MST 2014


I've got these rules

Cmnd_Alias BRUTALHEROES = \
                  /sbin/pfctl -t bruteforce -T , \
                  /sbin/pfctl -t heroes -T

han     ALL=(ALL) NOPASSWD: BRUTALHEROES
Defaults!BRUTALHEROES !requiretty

And two scripts that are run by cron that add log entries to firewall
tables. It works fine for an hour or two and then every next mail I get
from cron contains:

sudo: no tty present and no askpass program specified

What's going on here? What am I missing? This is the sudo that comes with
OpenBSD 5.6



# Han
--


More information about the sudo-users mailing list