2010年11月29日 星期一

RHEL5 sudo: sorry, you must have a tty to run sudo

在Crontab執行shell script時,在sudo使用上,會出現sudo: sorry, you must have a tty to run sudo系統訊息,在RHEL4可正常運作,而RHEL5會有此訊息,修改下列:
#vi /etc/sudoer
#Defaults requiretty  //將此參數#

沒有留言:

張貼留言