centos6.x86_64 启动自动执行脚本错误sudo: sorry, you must have a tty to run sudo

解决办法

注释掉/etc/sudoers Defaults    requiretty所在的行。即:
#Defaults    requiretty


你可能感兴趣的:(centos6.x86_64 启动自动执行脚本错误sudo: sorry, you must have a tty to run sudo)