Centos8.4和Centos8.5版本和乌班图系统,

在一般用户下执行sudo命令提示user is not in the sudoers file. This incident will be reported.

解决方法:
       一、$where is sudoers -------找出文件所在的位置,默认都是/etc/sudoers
            
       二、#chmod u+w /etc/sudoers    以超级用户登录su - root ,修改文件权限即添加文件拥有这的写权限 限,ls -al /etc/sudoers 可以查看原文件的权限。
      
       三、vim /etc/sudoers 编辑文件,在root ALL=(ALL)ALL行下添加XXX ALL=(ALL)ALL,XXX为你的用户名。

root    ALL=(ALL)       ALL
avconuser    ALL=(ALL)       ALL

添加方法:找到root行,按下”i“键进入编辑模式添加即可!编辑好后esc键进入一般模式,“:w!",":q!"保存退出!

最后, #chmod u-w /etc/sudoers 回到文件的原权限!

user is not in the sudoers file. This incident will be reported 解决方法(Centos8.4和Centos8.5和Ubuntu)相关推荐

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

  2. 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.解决方法:       ...

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

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

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

  6. Centos普通用户权限报错:** is not in the sudoers file. This incident will be reported.

    在centos下有一个普通用户hadoop,在用hadoop创建文件夹: [hadoop@localhost /] sudo mkdir /soft [sudo] password for hadoo ...

  7. centos普通用户权限问题解决:hadoop is not in the sudoers file. This incident will be reported.

    我在centos下有一个普通用户hadoop,在用hadoop创建文件夹: [hadoop@localhost  /] sudo mkdir  /soft [sudo] password for ha ...

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

  9. How to Fix “Username is not in the sudoers file. This incident will be reported” in Ubuntu

    How to Fix "Username is not in the sudoers file. This incident will be reported" in Ubuntu ...

  10. [已解决]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 ...

最新文章

  1. 基于协同过滤算法的推荐
  2. 改用C++生成自动化数据表
  3. Daily Scrum M2 10-29
  4. spin lock自旋锁
  5. java中数据成员的初始化问题
  6. java web项目请求控制及简单漏洞防范
  7. 一文了解下对小微风控策略的优雅调整
  8. poi的excel解析工具类
  9. ORACLE数据库多表关联查询效率问题解决方案
  10. 北京理工大学语音识别技术.ppt
  11. 【C/C++】C++基本语法
  12. RadioButton 与 XML 之间的协调使用
  13. 收藏!Tengine问题排查必备
  14. 【优化预测】基于matlab人工鱼群算法优化BP神经网络预测【含Matlab源码 523期】
  15. 动物统计加强版 nyoj290
  16. Dreamweaver中出现 以下翻译器没有被装载,由于错误:xxxx.htm:有不正确的设置信息 问题的解决方案(8,cs3,cs4似乎都会出现改问题)...
  17. 换机潮爆发,5G手机+5G超级SIM卡成趋势
  18. 足疗小张和面向对象的7个设计原则
  19. java第十一次作业
  20. 2018浙大计算机考研经验

热门文章

  1. tiny4412 串口驱动分析二 --- printk的实现
  2. java二面技术面试经验_网易java开发面试:一面+二面+三面以及 面试经验总结
  3. php 微信支付 传参数,php,微信支付_微信支付 传递自定义参数,php,微信支付,微信开发 - phpStudy...
  4. CMU语言技术研究所登陆B站:这是学术圈的新时尚?
  5. 【每日一题】2652. 倍数求和-2023.10.17
  6. IIS网站引用css等路径问题导致界面显示不正常(出现404 not found)
  7. Unity 火炬之光 笔记(二)状态机的基本设计
  8. SOHO一族的DIY午餐
  9. 悬空else问题(格式对代码结果判断的影响)
  10. 在jetson nano上安装anaconda