requiretty

Some cron didn’t work well after move to CentOS5

New to disable requiretty

May 19 10:40:01 xxx sudo:     root : sorry, you must have a tty to run sudo ; TTY=unknown ; PWD=/www/xxx/bin ; USER=xxx ; COMMAND=/bin/sh moviepagechmod.sh
vi /etc/sudoers
#Defaults    requiretty

Leave a Reply

Your email address will not be published.