XXX is not in the sudoers file. This incident will be reported.
来源:互联网 发布:linux 查看nginx配置 编辑:程序博客网 时间:2024/05/01 06:16
fedora下没有默认开启sudo,如果要使用root用户权限,则su - (切换环境)或者 su(不切换环境)。这样不是很方便,每次要使用root用户权限的时候,需要su下,又要输入root用户密码。
下面是如何修改sudoer文件,使得能够使用sudo命令
- su - (切换到root用户下);
- 输入root用户密码;
- ls -l /etc/sudoers (查看sudoers文件)-r--r-----. 1 root root 3182 2010-11-06 11:16 /etc/sudoers
- chmod u+w /etc/sudoers(给root用户增加写权限);
- ls -l /etc/sudoers (查看sudoers文件)-rw-r-----. 1 root root 3182 2010-11-06 11:16 /etc/sudoers
- vi /etc/sudoers(打开sudoers文件)然后在 root ALL=(ALL) ALL 后面加上 XXX ALL = (ALL) ALL,其中XXX表示你的用户名,保存之后推出
- chmode u-w /etc/sudoers (恢复sudoers文件原来的读写权限);
- ls -l /etc/sudoers (查看sudoers文件)-r--r-----. 1 root root 3182 2010-11-06 11:16 /etc/sudoers
- exit(退出root用户)
如此,就可以在xxx用户下使用sudo来做root权限的事情啦
- Fix the problem: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. This incident will be reported.
- sodu时提示:XXX is not in the sudoers file. This incident will be reported
- xxx is not in the sudoers file. This incident will be reported的错误解决方案
- centos 修改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. 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. 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. 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.的解决方法
- 自己制作arm-linux交叉编译环境(一)
- 自己制作arm-linux交叉编译环境(二)-crosstool篇
- DsoFramer.ocx制作CAB包详细图解过程
- wchar to char转换
- 小红伞误报病毒。误删了userinit.exe。使用USB启动技术修复。
- XXX is not in the sudoers file. This incident will be reported.
- 原来360和金山不兼容是腾讯的一个阴谋
- 百度快照无网页描述什么原因?
- 第一篇,哈哈
- 求职失败的方法2-面试的时候过于紧张
- ubuntu 10.04 root用户音量调节
- 初来乍到 还望各位同仁多多提携
- Veritas HA 安装配置手册
- select中取得action返回的直接