Ubuntu版本,在一般用户下执行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行,按下”i“键进入编辑模式添加即可!编辑好后esc键进入一般模式,“:w!",":q!"保存退出!
       最后, #chmod u-w /etc/sudoers 回到文件的原权限!

user is not in the sudoers file. This incident will be reported 解决方法相关推荐

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

  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. 【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. Centos普通用户权限报错:** is not in the sudoers file. This incident will be reported.

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

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

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

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

  9. [已解决]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. 将.NET概念映射到Lightning平台
  2. WordPress博客网站搬家和换域名方法
  3. 数据库系统概论-第一章绪论
  4. 台式机安装黑苹果-新手教程
  5. flash 10 android,adobe flash 10.0.0
  6. Centos7 tomcat优化
  7. Spring data elasticsearch添加同义词组件实现同义词热更新
  8. 路由器登陆192.168.1.1打开后出现移动登陆页面
  9. echart中饼图如何显示数据 实现鼠标移动切换显示(vue中)
  10. python mpi4py multiprocessing_python基于multiprocessing的多进程创建方法
  11. Leetcode.43:(Python)给定两个以字符串形式表示的非负整数 num1 和 num2,返回 num1 和 num2 的乘积,它们的乘积也表示为字符串形式。
  12. KOL营销抢跑新消费品牌
  13. 2023年4月国产数据库大事记-墨天轮
  14. Dremio 数据湖以及数据仓库
  15. windows下sass开发环境的搭建
  16. 几组超神奇的网页应用代码要你在IE浏览器任意打开一个网站,然后在浏览器上输入如下代码神奇的代码,可随意修改复制页面内容!
  17. 做了一个网页版的串口调试助手
  18. 文献翻译2:AOPG: Anchor-free Oriented Proposal Generator for Object Detection
  19. Redis学习 master/slave(主从)、sentinel(哨兵)、Cluster简单总结
  20. spring源码分析03-spring依赖注入源码解析

热门文章

  1. 在线解压-密码压缩包
  2. Java大型智慧物业管理系统源码
  3. 美国计算机访学,美国博世研究与技术中心招聘计算机科学与统计学方向博士后和访问学者...
  4. 统计学第八周,第九周
  5. 《Adobe After Effects CC完全剖析》——时间设置
  6. Python程序执行时间测试
  7. 一些mathtype符号
  8. 干货|工厂车间导入5S管理的方法步骤
  9. 语音识别与Python编程实践
  10. 【JAVA】【刷题子】1037. 有效的回旋镖