Friday, January 20, 2012

Issue with Sudo Command without tty [Terminal].

Issue with Sudo Command without tty [Terminal].
[sudo: sorry, you must have a tty to run sudo]

Solution: 
/etc/sudoers file comes with requiretty option by default.
Just by disabling this option [Use visudo command] you can avoid the the following error.
[sudo: sorry, you must have a tty to run sudo]

#
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
#         You have to run "ssh -t hostname sudo <cmd>".
#
Defaults    requiretty  <++++++++++disable this. (comment this line using #)

~Praveen Bodke.
Pin It
Related Posts Plugin for WordPress, Blogger...