當在Linux下執(zhí)行 sudo -s 時出現(xiàn)如下提示:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
解決方法:
(a)進入超級用戶模式。
輸入"su -",系統(tǒng)會讓你輸入超級用戶密碼,輸入密碼后就進入了超級用戶模式。(當然,你也可以直接用root)
(b)添加文件的寫權限。
輸入命令"chmod u+w /etc/sudoers"。
(c)編輯/etc/sudoers文件。
輸入命令"vim /etc/sudoers",進入編輯模式,找到這一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(這里的xxx是你的用戶名),然后保存退出。
(d)撤銷文件的寫權限。
輸入命令"chmod u-w /etc/sudoers"。