Fedora提示 xxxis not in the sudoers file.this incident will be reported解决办法
来源:互联网 发布:淘宝延长收货还有问题 编辑:程序博客网 时间:2024/06/05 01:59
由于Fedora默认不添加用户到sudoers,因此当我们使用sudo时就会出现“is not in the sudoers file.”的错误。
添加方法如下:
1.进入root模式
su -
注意:su和-之间有空格
输入当前用户的密码
2.添加写权限
chmod u+w /etc/sudoers
3.将自己加入到sudoers中
gedit /etc/sudoers
注意此处使用的是gedit,如果你熟悉vi,vim也可以使用,不过对于我这个初学者来说gedit对于解决问题来说还是很方便的
进入之后,搜索 root
看到这样的一行:root ALL=(ALL) ALL
在下面填上类似的信息,例如你的用户名字叫 user 则添加: user ALL=(ALL) ALL
添加好后保存
4.撤销写权限
chmod u-w /etc/sudoers
OK,问题应该能解决
添加方法如下:
1.进入root模式
su -
注意:su和-之间有空格
输入当前用户的密码
2.添加写权限
chmod u+w /etc/sudoers
3.将自己加入到sudoers中
gedit /etc/sudoers
注意此处使用的是gedit,如果你熟悉vi,vim也可以使用,不过对于我这个初学者来说gedit对于解决问题来说还是很方便的
进入之后,搜索 root
看到这样的一行:root ALL=(ALL) ALL
在下面填上类似的信息,例如你的用户名字叫 user 则添加: user ALL=(ALL) ALL
添加好后保存
4.撤销写权限
chmod u-w /etc/sudoers
OK,问题应该能解决
- Fedora提示 xxxis not in the sudoers file.this incident will be reported解决办法
- Fedora提示 xxxis not in the sudoers file.this incident will be reported解决办法
- CentOS6.8 XXXis not in the sudoers file. This incident will be reported.
- 解决linux下sudo更改文件权限报错xxxis not in the sudoers file. This incident will be reported.
- 解决linux下sudo更改文件权限报错xxxis not in the sudoers file. This incident will be reported.
- sodu时提示:XXX is not in the sudoers file. This incident will be reported
- 使用用sudo时提示"### is not in the sudoers file. This incident will be reported.
- 使用用sudo时提示"### is not in the sudoers file. This incident will be reported.
- sudo提示“is not in the sudoers file. This incident will be reported”解决方法
- sudo 提示oracle is not in the sudoers file. This incident will be reported的解决方法
- xxx is not in the sudoers file. This incident will be reported (解决办法)
- 一般用户下执行sudo命令提示sunxi is not in the sudoers file. This incident will be reported
- Fix the problem:xxx is not in the sudoers file.This incident will be reported
- 解决is not in the sudoers file. This incident will be reported
- xxx is not in the sudoers file. This incident will be reported的解决方法
- *** is not in the sudoers file.This incident will be reported
- XXX is not in the sudoers file. This incident will be reported.
- is not in the sudoers file. This incident will be reported
- JSP四种会话跟踪技术
- 提高数据库查询效率的简单常用方法
- 心灵的抚慰 floyed求最小环
- Oracle11g基础学习---------(3)管理数据库对象
- smarty模板简单实例
- Fedora提示 xxxis not in the sudoers file.this incident will be reported解决办法
- c# 练习总结
- 华为CMM实施杂记
- 动态生成HTMLTable,table,DataTable
- MemberShip的属性
- Oracle11g基础学习---------(4)PLSQL语言基础
- 支持向量机(SVM)基础
- Windows android 开发环境搭建
- Oracle11g基础学习---------(5) 开发子程序和包