XXX is not in the sudoers file. This incident will be reported.
来源:互联网 发布:菜鸟商城源码介绍 编辑:程序博客网 时间:2024/05/22 23:13
1)切换到root用户下
2) /etc/sudoers文件默认是只读的,对root来说也是,因此需先添加sudoers文件的写权限,命令是:
chmod u+w /etc/sudoers
3) 编辑sudoers文件 vi /etc/sudoers
找到这行 root ALL=(ALL) ALL,在他下面添加xxx ALL=(ALL) ALL (这里的xxx是你的用户名)
4) 接下来在运行sudo 命令会出现以下错误
sudo: /etc/sudoers is mode 0640, should be 0440
sudo: no valid sudoers sources found, quitting
5) 我们需要将权限改回只读权限,即运行
chmod 0440 /etc/sudoers
则成功修复
阅读全文
0 0
- 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.的解决方法
- chown命令
- Android 内核--Binder架构分析
- Spring源码学习--Bean对象循环依赖问题解决(四)
- 如何使用phpstudy定制php版本
- swift3.0 创建sqlite数据库步骤
- XXX is not in the sudoers file. This incident will be reported.
- 真题详解
- LeetCode 538 Convert BST to Greater Tree(二叉树的右中左遍历)
- 【数据库】mysql报错 编码码1130 和错误码1146
- C# datagridview使用
- JavaScript
- sql注入基础总结
- 30 字符串处理命令
- 【EJB】(一)EJB初了解