1. 程式人生 > >is not in the sudoers file.This incident will be reported

is not in the sudoers file.This incident will be reported

1.進入超級使用者模式。也就是輸入”su root”,系統會讓你輸入超級使用者密碼,輸入密碼後就進入了超級使用者模式。
2.新增檔案的寫許可權。也就是輸入命令chmod u+w /etc/sudoers
3.編輯/etc/sudoers檔案。
輸入命令vim /etc/sudoers,輸入”i”進入編輯模式,找到:”root ALL=(ALL) ALL”行。
在起下面新增xxx ALL=(ALL) ALL(xxx是你的使用者名稱),然後儲存(就是先摁一下Esc鍵,然後輸入:wq)退出。