sudo: sorry, you must have a tty to run sudo
来源:互联网 发布:如何查看淘宝卖家地址 编辑:程序博客网 时间:2024/05/16 08:19
需要远程到机器上去执行sudo -u 的命令,遇到如下错误:
sudo: sorry, you must have a tty to run sudo
解决办法:
在/etc/sudoers文件中做如下修改:
注释掉:Defaults requiretty所在的行。即:
- 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
- 解决sudo: sorry, you must have a tty to run sudo
- sudo: sorry, you must have a tty to run sudo pssh
- 解决sudo: sorry, you must have a tty to run sudo
- 问题解决:sudo: sorry, you must have a tty to run sudo
- centos6.x86_64 启动自动执行脚本错误sudo: sorry, you must have a tty to run sudo
- dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct
- E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.解决办法
- 已解决“pkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem”
- you must have a uni
- 我的WCF之旅 (11): 再谈WCF的双向通讯-基于Http的双向通讯 V.S. 基于TCP的双向通讯
- Sql server 2005 CTE 拆分字符串
- “throw e”和“throw”
- Visual Studio中【Ctrl + 1】键实现命名空间导入(类似于Eclipse)
- struts 2.2.1做例子时报异常:java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 解决
- sudo: sorry, you must have a tty to run sudo
- ACE框架在网络游戏服务器中的设计与应用
- 获取系统中安装的应用程序的基本信息
- 为即将逝去的2010,留下足迹
- POJ 1979 Red and Black 解题报告
- HCI History(Edited and Transferred)
- 我的WCF之旅(12):使用MSMQ进行Reliable Messaging
- C#.NET和SQL Server中如何生成GUID
- Milw0rm Video Tutorials