搜尋此網誌

2015年10月30日 星期五

讓 授權的使用者 不需知道 root 密碼 就能執行 root 任務 的指令 Sudo


Open a Terminal window. Type in sudo visudo 
Add the following line to the END of the file (if not at the end it can be nullified by later entries):

開啟終端機畫面,直接輸入 sudo visudo
至檔案最尾端,編輯加入以下:

indy ALL=NOPASSWD: ALL

存檔完,還要關閉 Terminal window 生效。

重新登入後, 輸入 sudo bash 



搜尋此網誌