[sudo-users] sudo in crontab

Tran-Huu.Hanh at t-systems.com Tran-Huu.Hanh at t-systems.com
Wed May 18 12:09:38 EDT 2005

Hi all,


from the command prompt i can run a script with sudo.


 $ /opt/bin/sudo  XXX.sh


if I put this script with sudo - the same syntax -  in a crontab, it doesn't work


1 1 * *  0  /opt/bin/sudo  XXX.sh


In log I see: "you must have a tty to run sudo ... "


How can I fixe the problem?


Thanks for your help


T.H. Hanh

More information about the sudo-users mailing list