sudo: sorry, you must have a tty to run sudo
2013-07-01 16:43
417 查看
使用不同账户,执行执行脚本时候sudo经常会碰到 sudo: sorry, you must have a tty to run sudo这个情况修改一下sudo的配置vi /etc/sudoers (最好用sudo vi /etc/sudoers命令)注释掉 Default requiretty 一行#Default requiretty意思就是sudo默认需要tty终端。注释掉就可以在后台执行。
相关文章推荐
- centos6.x86_64 启动自动执行脚本错误sudo: sorry, you must have a tty to run sudo
- 远程sudo错误:sudo: sorry, you must have a tty to run sudo
- sudo: sorry, you must have a tty to run sudo
- sudo: Sorry, you must have a tty to run sudo Error on a Linux and Unix
- sudo: sorry, you must have a tty to run sudo
- sudo: sorry, you must have a tty to run sudo
- sudo: sorry, you must have a tty to run sudo
- sudo 问题:sorry, you must have a tty to run sudo
- 解决sudo: sorry, you must have a tty to run sudo
- sudo: sorry, you must have a tty to run sudo
- sudo: sorry, you must have a tty to run sudo
- 解决sudo: sorry, you must have a tty to run sudo
- 问题解决:sudo: sorry, you must have a tty to run sudo
- Linux-/etc/rc.local 或 service 中使用 sudo -u xxx cmd 执行失败(sorry, you must have a tty to run sudo)解决办法
- sudo: sorry, you must have a tty to run sudo
- sudo: sorry, you must have a tty to run sudo
- sudo:sorry,you must have a tty to run sudo
- sudo: sorry, you must have a tty to run sudo
- sudo: sorry, you must have a tty to run sudo pssh