遠端使用SUDO指令

#
# Disable "ssh hostname sudo ", because it will show the password in clear.
#         You have to run "ssh -t hostname sudo ".
#
Defaults    requiretty

根據上述說明,就算sudo有開啟權限使用,由於安全性的緣故並不允許遠端使用此指令
因此需要標記起來,開放這個權限

#
# Disable "ssh hostname sudo ", because it will show the password in clear.
#         You have to run "ssh -t hostname sudo ".
#
#Defaults    requiretty
This entry was posted in Linux. Bookmark the permalink.