sudo: sorry, you must have a tty to run sudo
原贴//www.zimbra.com/forums/installation/10553-solved-sudo-sorry-you-must-have-tty-run-sudo.html
Welcome to the Zimbra - Forums. |
Welcome to the forums! We encourage you to explore all things Zimbra with our team and members of the community. If you would like to post a comment, please register and review our posting policy & tips. |
![]() |
LinkBack (1) <script type=”text/javascript”></script> ![]() | Thread Tools <script type=”text/javascript”></script> ![]() | Display Modes <script type=”text/javascript”></script> ![]() |
| |||
![]() [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 |
| ||||
![]() 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. __ -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 |
| ||||
![]() __ -Mike Coolest thing ever | ZCS-to-ZCS Migrations | Admin Tools & Tidbits - Part 2 » Zimbra :: Blog | 5.0.15NE/.14FOSS Available |
| |||
![]() 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!!!! ![]() |
| ||||
![]() 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. __ -Mike Coolest thing ever | ZCS-to-ZCS Migrations | Admin Tools & Tidbits - Part 2 » Zimbra :: Blog | 5.0.15NE/.14FOSS Available |
| |||
![]() Instead of removing the requiretty default for everyone you can selectively override defaults for users/groups. I’m not sure if the original poster was having trouble w/ the ldap user account, but I’ll assume he was. In that case: Code:
sudoers(5) man page for more information. |
还没有评论,来说两句吧...