问题.  xxx is not in the sudoers file. This incident will be reported.(当想要以 xxx的身份切换到root权限时,使用sudo su命令,并按提示输入 *** 的密码后出现的错误提示)
解决方案1.修改sudoer文件,使得能够使用sudo命令

su  (切换到root用户下);
输入root用户密码;
ls -l /etc/sudoers (查看sudoers文件)
chmod u+w /etc/sudoers(给root用户增加写权限);
ls -l /etc/sudoers (查看sudoers文件)
vim /etc/sudoers(打开sudoers文件)然后在 root ALL=(ALL) ALL 后面加上 XXX ALL = (ALL) ALL,其中XXX表示你的用户名,保存之后推出
chmode u-w /etc/sudoers (恢复sudoers文件原来的读写权限)
ls -l /etc/sudoers (查看sudoers文件)
exit(退出root用户)
如此,就可以在xxx用户下使用sudo来做root权限的事情啦。

转载于:https://blog.51cto.com/zhanguo1110/1419413

解决xx is not in the sudoers file. This incident will be reported.问题相关推荐

  1. ubuntu下执行sudo命令提示:xx is not in the sudoers file. This incident will be reported.

    在执行sudo命令时会有如下提示: xx is not in the sudoers file. This incident will be reported. 原因分析:一般这种情况是修改了用户名, ...

  2. [已解决]user is not in the sudoers file. This incident will be reported.(简单不容易出错的方式)

    linux Ubuntu中报错,XXX is not in the sudoers file. This incident will be reported. 今天在学习的时候,不小心把自己的用户su ...

  3. Linux中新建用户用不了sudo命令问题:rootr is not in the sudoers file.This incident will be reported解决

    Linux中新建用户用不了sudo命令问题:rootr is not in the sudoers file.This incident will be reported解决 参考:https://b ...

  4. 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 ...

  5. 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"错误,解决 ...

  6. XXXX is not in the sudoers file. This incident will be reported解决方法

    假设你用的是Red Hat系列(包括Fedora和CentOS)的Linux系统.当你执行sudo命令时可能会提示"某某用户 is not in the sudoers file.  Thi ...

  7. 【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 ...

  8. user is not in the sudoers file. This incident will be reported 解决方法

    Ubuntu版本,在一般用户下执行sudo命令提示user is not in the sudoers file. This incident will be reported.解决方法:       ...

  9. XXXX is not in the sudoers file. This incident will be reported解决方法

    XXXX is not in the sudoers file.  This incident will be reported解决方法 假设你用的是Red Hat系列(包括Fedora和CentOS ...

最新文章

  1. n1进入recovery模式_启动自动变砖模式?三星Galaxy“智能”手机
  2. SQL SERVER 2008的SQLCMD模式
  3. ajax方式下载文件
  4. HashMap源码解读
  5. 【Flink】ORA-00923: FROM keyword not found where expected
  6. dijkstra最短路径算法视频_Dijkstra最短路径算法
  7. _软件园三期西片区F地块举行招商推介会 超300家企业意向落户 - 本网原创
  8. Android RelativeLayout 相对布局
  9. mysql 授权_MySQL的授权
  10. YUV420数据格式详解
  11. 黑苹果10.12.2驱动R9 270显卡成功一例
  12. 全方位解读数字转型在企业产业变革中发挥的作用!
  13. 50部经典烧脑大片,看懂是个问题,敢不敢看是另一个问题!
  14. 判断机型,支持最新设备(iPhone SE Gen2 和 iPad Pro 11 Gen2、iPad Pro 12.9 Gen4)
  15. [codeforces 1324D] Pair of Topics 分而治之+排列组合
  16. ROM、RAM、DRAM、SRAM、FLASH区别
  17. centos7局域网挂载nas硬盘
  18. vite引入dragula报错:global is not defined
  19. 服务器突然Out of memory的问题排查
  20. 太原理工大学c语言期末试卷及答案,太原理工大学人工智能复习题 试题 答案概要...

热门文章

  1. http 请求 超时时间设置
  2. matlab中模块封装,MATLAB/simulink模块的封装
  3. Redis中数据结构和编码详细图解(应用场景及优缺点)
  4. 装载鸿蒙系统,华为3-4月份将正式推送鸿蒙系统 第三方装载量也将达到一个亿...
  5. OSTimeDlyResume()--恢复一个延迟任务(取消任务延时)
  6. 为什么Go中有的自定义error会导致内存溢出
  7. 关于SpringBoot场景启动器
  8. 关于Redis的几个问题
  9. kafka经典面试题
  10. JAVA中实用的一个工具类--Hutool