liuyalong is not sudoers file.This incident will reported
来源:互联网 发布:欣想电子商城项目源码 编辑:程序博客网 时间:2024/05/30 23:19
liuyalong is not sudoers file.This incident will reported.与sudo: /etc/sudoers is mode 0640, should be 0440的解决方法
刚安装完Feroda9.0-en版,当我在终端执行sudo su 命令时,出现了”liuyalong is not sudoers file.This incident will reported.”的问题,当时很是郁闷,上GOOGLE一通查,但大多数是Ubuntu的解决方案。我也就照着做了,方法如下:
1>、进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。
2>、添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3>、编辑/etc/sudoers文件。也就是输入命令"vim /etc/sudoers",输入"i"进入编辑模式,找到这一行:"root ALL=(ALL) ALL"在起下面添加"liuyalong ALL=(ALL) ALL"(这里的liuyalong是我的用户名),然后保存(就是先摁一下Esc键,然后输入":wq")退出。
4>、撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。
2>、添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3>、编辑/etc/sudoers文件。也就是输入命令"vim /etc/sudoers",输入"i"进入编辑模式,找到这一行:"root ALL=(ALL) ALL"在起下面添加"liuyalong ALL=(ALL) ALL"(这里的liuyalong是我的用户名),然后保存(就是先摁一下Esc键,然后输入":wq")退出。
4>、撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。
但是,问题到此没有结束,一波刚平,一波又起。我再次在终端上执行sudo su时,又出现了“sudo: /etc/sudoers is mode 0640, should be 0440″的问题,我的头真大了。又找谷哥,得到了解决方案:
1>登录root账号
2>在终端输入 chmod 0440 /etc/sudoers
3>再次在终端输入sudo su,出现了“[root @local host liuyalong]#“。问题到此解决。
- liuyalong is not sudoers file.This incident will 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
- XXX is not in the sudoers file. This incident will be reported.
- 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的错误解决方案
- 使用用sudo时提示"### is not in the sudoers file. This incident will be reported.
- 某某 is not in the sudoers file. This incident will be reported.”
- user is not in the sudoers file. This incident will be reported 解决方法
- 使用用sudo时提示"### is not in the sudoers file. This incident will be reported.
- is not in the sudoers file. This incident will be reported
- is not in the sudoers file. This incident will be reported.
- sudo提示“is not in the sudoers file. This incident will be reported”解决方法
- centos 修改xxx is not in the sudoers file. This incident will be reported
- linux *** is not in the sudoers file. This incident will be reported.
- JDBC基础(一)
- JDBC基础(二)
- JDBC基础(三)
- JDBC 基础(四)
- 声明。这个是发表测试的
- liuyalong is not sudoers file.This incident will reported
- [转] 献给所有正在找路的人
- 一些程序设计语言
- 常用JavaScript编辑器介绍(转)
- 菜鸟
- 做一个健康的的程序员
- 做一个健康的的程序员2
- 笑对顺逆
- 奔跑