sudo: sorry, you must have a tty to run sudo
来源:互联网 发布:php baseurl 编辑:程序博客网 时间:2024/05/16 23:02
原贴:http://www.zimbra.com/forums/installation/10553-solved-sudo-sorry-you-must-have-tty-run-sudo.html
#1 (permalink)
07-31-2007, 11:44 AM
Member
BlueHaven's Zimbra Wiki Sandbox Page
Join Date: Jul 2007
Posts: 21
[SOLVED] sudo: sorry, you must have a tty to run sudo
Running the config and get this error when Initializing ldap
sudo: sorry, you must have a tty to run sudo
Any idea's?
Still on fedora 6
sudo: sorry, you must have a tty to run sudo
Any idea's?
Still on fedora 6
#2 (permalink)
07-31-2007, 11:50 AM
Zimbra Employee
mmorse's Zimbra Wiki Sandbox Page
Join Date: May 2006
Location: USA
ZCS Version: 6.0.x - NE & FOSS
Posts: 5,431
Fedora's has some additional restrictions
As root:
./install.sh -u
vi /etc/sudoers (EDIT: please use visudo instead)
comment out: #Default requiretty
And reinstall (./install.sh)
If requiretty is set, sudo will only run when the user is logged in to a real tty. This will disallow things like 'rsh somehost sudo ls' since rsh does not allocate a tty; because it is not possible to turn off echo when there is no tty present.
As root:
./install.sh -u
vi /etc/sudoers (EDIT: please use visudo instead)
comment out: #Default requiretty
And reinstall (./install.sh)
If requiretty is set, sudo will only run when the user is logged in to a real tty. This will disallow things like 'rsh somehost sudo ls' since rsh does not allocate a tty; because it is not possible to turn off echo when there is no tty present.
__________________
-Mike
Coolest thing ever | ZCS-to-ZCS Migrations | Admin Tools & Tidbits - Part 2 » Zimbra :: Blog | 5.0.15NE/.14FOSS Available
-Mike
Coolest thing ever | ZCS-to-ZCS Migrations | Admin Tools & Tidbits - Part 2 » Zimbra :: Blog | 5.0.15NE/.14FOSS Available
Last edited by mmorse : 07-31-2007 at 12:26 PM. Reason: visudo
#3 (permalink)
07-31-2007, 11:56 AM
Zimbra Employee
mmorse's Zimbra Wiki Sandbox Page
Join Date: May 2006
Location: USA
ZCS Version: 6.0.x - NE & FOSS
Posts: 5,431
I knew there was a safer method: visudo
Sudoers - ZimbraWiki
Sudoers - ZimbraWiki
__________________
-Mike
Coolest thing ever | ZCS-to-ZCS Migrations | Admin Tools & Tidbits - Part 2 » Zimbra :: Blog | 5.0.15NE/.14FOSS Available
-Mike
Coolest thing ever | ZCS-to-ZCS Migrations | Admin Tools & Tidbits - Part 2 » Zimbra :: Blog | 5.0.15NE/.14FOSS Available
#4 (permalink)
07-31-2007, 12:09 PM
Member
BlueHaven's Zimbra Wiki Sandbox Page
Join Date: Jul 2007
Posts: 21
Hmm, well the first way you showed me worked good. Sense this is only a test box I will leave it as is. If I decide to go production I will prop it the way in the article!
Thanks a bunch!!!!
Thanks a bunch!!!!
#5 (permalink)
07-31-2007, 12:32 PM
Zimbra Employee
mmorse's Zimbra Wiki Sandbox Page
Join Date: May 2006
Location: USA
ZCS Version: 6.0.x - NE & FOSS
Posts: 5,431
Good to hear,
visudo is just a little safer than a vi no biggie
It essentially locks the sudoers file, provides basic sanity/parse errors checks.
visudo is just a little safer than a vi no biggie
It essentially locks the sudoers file, provides basic sanity/parse errors checks.
__________________
-Mike
Coolest thing ever | ZCS-to-ZCS Migrations | Admin Tools & Tidbits - Part 2 » Zimbra :: Blog | 5.0.15NE/.14FOSS Available
-Mike
Coolest thing ever | ZCS-to-ZCS Migrations | Admin Tools & Tidbits - Part 2 » Zimbra :: Blog | 5.0.15NE/.14FOSS Available
#6 (permalink)
02-11-2009, 07:05 PM
Starter Member
sir_hmba's Zimbra Wiki Sandbox Page
Join Date: Feb 2009
Posts: 1
Quote:
Originally Posted by mmorse
comment out: #Default requiretty
Code:
Defaults:ldap !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
- Oracle 的链接方式
- Win2008 IIS7去除30M上传限制的解决方法
- Windows映射模式及相关问题的解决
- vss中如何从其他目录将文件拷至项目目录下
- STUN在SIP中的工作原理及过程
- sudo: sorry, you must have a tty to run sudo
- 什么是增益
- 为ASPxComboBox 控件动静态绑定下拉项的方法
- 《穷爸爸、富爸爸》读后感
- silverlight的简单介绍
- SIP 软电话开发环境的建立
- JIRA_3.13.2_Standalone + mysql 配置(Linux)
- 控件"类名称"
- asp.net 中英文字符串长度不一致的问题