sudo出现sorry, you must have a tty to run sudo

当远程使用到sudo出现sudo: sorry, you must have a tty to run sudo时,您可以将
Default requiretty
变为
#Default requiretty
就是将这一行注释掉吧.
惊喜很多,要懂得享受!
还有一篇关于出现这个错误的文章:
http://maymay.net/blog/2010/03/17/how-to-work-around-sorry-you-must-have-a-tty-to-run-sudo-without-sacrificing-security/
看懂了也有好处吧应该.

留下评论