天藍色
希望每天的心情,能夠像看到天空藍色般的舒服.
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 //將此參數#
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言