sudo,用其他用户的身份执行命令。
运行该命令时,系统首先检查/etc/sudoers,判断该用户是否有执行sudo的权限,在确定有执行权限后,要求输入自己的密码(当前用户),如果密码正确,会以root用户的身份运行后面的命令。

出现xxx is not in the sudoers file. This incident will be reported.一般是提示xxx用户没有执行sudo的权限。

使用visudo命令编辑配置文件,用PgDn翻到大概倒数十几行的位置,复制root那一行,修改成对应的用户,并粘贴。

NOPASSWD表示执行sudo时不再额外输入当前用户的密码,特别注意不是NOPASSWORD,不然保存的时候会报错。:wq!保存并退出,以普通用户登陆并执行命令,不会再提示错误了。

ps:xxx用户相关操作
添加用户:useradd xxx
设置用户密码:passwd xxx
删除用户:userdel xxx
查看用户:userswhow三个都可以

xxx is not in the sudoers file. This incident will be reported.相关推荐

  1. xxx is not in the sudoers file.This incident will be reported.的解决方法

    xxx is not in the sudoers file.This incident will be reported.的解决方法 参考文章: (1)xxx is not in the sudoe ...

  2. Ubuntu报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法

    Ubuntu下普通用户用sudo执行命令时报"xxx is not in the sudoers file.This incident will be reported"错误,解决 ...

  3. xxx is not in the sudoers file. This incident will be reported.解決方法

    我们通常都是以普通用户登录linux, 在执行sudo时候会遇到 xxx is not in the sudoers file.  This incident will be reported. 解决 ...

  4. 【sudo错误】xxx is not in the sudoers file.This incident will be reported解决

    文章目录 1.问题 2.分析 3.解决方法 3.1 手动修改 3.2 命令方式修改--sudo visudo 4.扩展说明 1.问题 xxx is not in the sudoers file.Th ...

  5. 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"错误,解决方法就是在/e ...

  6. xxx is not in the sudoers file. This incident will be reported

    问题描述: 新建用户执行命令sudo chmod 700 ,提示输入root命令. 输入三次错误. 提示 yourid is not in the sudoers file. This inciden ...

  7. CentOS下添加Root权限用户‘超级用户’方法(xxx is not in the sudoers file.This incident will be reported.的解决方法)

    文章目录 1.添加普通用户 2.添加sudo文件的写权限 3.编辑sudoers文件 4.撤销sudoers文件写权限 1.添加普通用户 [root@server ~]# useradd fxd // ...

  8. xxx is not in the sudoers file.This incident will be reported.

    1.切换到root用户,运行visudo命令 visudo 2.打开的配置文件,找到这行 root ALL=(ALL) ALL,在他下面添加xxx ALL=(ALL) ALL (这里的xxx是你的用户 ...

  9. 【转载】xxx is not in the sudoers file.This incident will be reported.的解决方法

    1.切换到root用户下,怎么切换就不用说了吧,不会的自己百度去. 2.添加sudo文件的写权限,命令是: chmod u+w /etc/sudoers 3.编辑sudoers文件 vi /etc/s ...

最新文章

  1. (转)Mac下MySql安装经历(含安装错误排查、卸载多种折腾)
  2. 由IP和掩码计算广播地址
  3. linux命令怎么打开优盘,Linux下U盘使用具体步骤
  4. java 二维卡尔曼滤波_卡尔曼滤波(Kalman filtering)算法学习小记
  5. 百度2019暑期实习计算机视觉岗位笔试题
  6. baidu的服务器数据里面装的都是垃圾!
  7. 前端学习(2663):vue3.0的todolist
  8. iphone无线充电充电测试软件,瞎折腾星人的测评 篇一:想体验iPhone的无线充电?这可能是最具性价比的选择了!...
  9. greendao3.2.3配置时遇到的问题
  10. 深度剖析Java数据结构之迭代器(Iterator)
  11. [VB]SaveSetting 语句 和 DeleteSetting 语句
  12. python list平均数_数据分析之Python干货笔记
  13. 二手笔记本测试软件,想买二手笔记本?先学会这些检测方法才最大限度不被坑...
  14. linux启动服务日志,linux 服务启动日志
  15. 《X战警:逆转未来》热映 破福斯海外开画纪录
  16. laravel中提供DB facade(原始查找)、查询构造器、Eloquent ORM三种操作数据库方式
  17. 什么是字节序(端序、低端字节序、高端字节序、网络字节序)
  18. hadoop编程实战——日志分析
  19. 互联网盈利模式77种创新
  20. JS函数自定义弹窗;纯JS实现弹窗

热门文章

  1. 单点登录(SSO)解决方案之 CAS服务端数据源设置及页面改造
  2. 在输入文本框中获取值
  3. Matlab 变量保存csv:UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xfb in position 4: illegal multiby
  4. activiti删除已经部署的流程定义
  5. 已经发车的票还能取出来吗_网上预订汽车票不知道怎么退票?
  6. STM32:GPIO四种输入输出模式。
  7. 全向轮机器人直线运动分析
  8. mysql sql trace_用MySQL的optimizer_trace进行sql调优
  9. html背景颜色白色半透明,HTML – 背景颜色:透明意味着什么?
  10. 指针06:指针和数组