[sudo-users] sudo in crontab
Todd C. Miller
Todd.Miller at courtesan.com
Wed May 18 12:55:56 EDT 2005
In message <DF6FD933C3914D409E8CA14EE01A026C01ED7C98 at e8sbh.ditscom.dsh.de>
so spake (Tran-Huu.Hanh):
> In log I see: "you must have a tty to run sudo ... "
Your sudo is configured to only run when there is a tty
present, whcih is not the case for cron jobs. Usually this
is due to a line like the following in sudoers:
Defaults requiretty
Removing this (or just disabling it for the user who must run the
cron job) should eliminate the error. Note that you will also need
to disable authentication either via the NOPASSWD tag or the
"authenticate" Defaults option.
- todd
More information about the sudo-users
mailing list