Ubuntu技巧之 is not in the sudoers file解決方法

轉自:http://www.linuxidc.com/Linux/2010-12/30386.htmlinux

1)進入到root用戶下。spa

2)添加文件的寫權限。也就是輸入命令"chmod u+w /etc/sudoers"。
3)編輯/etc/sudoers文件。也就是輸入命令"gedit /etc/sudoers",進入編輯模式,找到這一 行:"root ALL=(ALL) ALL"在起下面添加"yourName ALL=(ALL) ALL"(這裏的yourName是你的用戶名),而後保存退出。htm

4)撤銷文件的寫權限。也就是輸入命令"chmod u-w /etc/sudoers"。it

相關文章
相關標籤/搜索