解 4000 决Debian中的xxx is not in the sudoers file问题
2014-03-11 13:35
405 查看
解决Debian中的xxx is not in the sudoers file问题
用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是
你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。下面是修改方法: www.2cto.com
1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。
(当然,你也可以直接用root用)
2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3) 编辑/etc/sudoers文件。也就是输入命令"vi /etc/sudoers",输入"i"进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存(就是先按一 下Esc键,然后输入":wq")退出。
4)撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。
用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是
你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。下面是修改方法: www.2cto.com
1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。
(当然,你也可以直接用root用)
2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3) 编辑/etc/sudoers文件。也就是输入命令"vi /etc/sudoers",输入"i"进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存(就是先按一 下Esc键,然后输入":wq")退出。
4)撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。
相关文章推荐
- 解决centOS下xxx is not in the sudoers file 问题
- linux学习之xxx is not in the sudoers file.This incident will be reported问题
- sudo使用问题之——xxx is not in the sudoers file。
- Linux遇到的问题(一)Ubuntu报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- xxx is not in the sudoers file.This incident will be reported
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file解决方法
- 【Linux】xxx is not in the sudoers file
- Linux有问必答:怎样解决“XXX is not in the sudoers file”错误
- 【QA4】【sudoers问题解决】(*** is not in the sudoers file.This incident will be reported)
- xxx is not in the sudoers file. This incident will be reported的解决方法
- 【转】如何在fedora等Linux系统下解决(** is not in the sudoers file)的问题
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- 解决Linux中 xxx is not in the sudoers file
- xx is not in the sudoers file 问题的解决方案
- XXX is not in the sudoers file解决方法
- Linux报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- 普通用户开通sudo权限:xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- 【Linux学习】Linux报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法