sudo vi /etc/sudoers
你的用户名   ALL=(ALL:ALL) ALL

如下

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"# Host alias specification# User alias specification# Cmnd alias specification# User privilege specification
root    ALL=(ALL:ALL) ALLledi   ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL# See sudoers(5) for more information on "#include" directives:#includedir /etc/sudoers.d

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

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

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

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

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

  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. 解决xx is not in the sudoers file. This incident will be reported.问题

    问题.  xxx is not in the sudoers file. This incident will be reported.(当想要以 xxx的身份切换到root权限时,使用sudo su ...

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

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

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

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

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

最新文章

  1. 【组队学习】【32期】李宏毅机器学习(含深度学习)
  2. java.util.ConcurrentModificationException异常原因及解决方法
  3. 解决yum安装时 Cannot retrieve repository metadata (repomd.xml) for repository
  4. iPad 3将获得Retina视网膜显示技术
  5. 犯罪心理解读Mybatis拦截器
  6. 工程师必知的代码重构指南
  7. EFProf Entity Framework Profile 工具
  8. idea报错 电脑死机蓝屏
  9. Java应用程序中的消息传递主体
  10. RefFieldMethodDetails——查看类的域和方法
  11. 请求列出指定服务器上的可用功能失败_滥用 ESI 详解(上)
  12. springboot2.x整合Email并利用AOP做一个项目异常通知功能
  13. access 英语什么意思_Access数据库集成教程二:创建查询
  14. linux 停止路由转发策略_Linux静态路由
  15. 陪学读书会——《定位》第十三章:品牌延伸何时有效
  16. 1013: 【顺序结构】数字各位分割
  17. Python str函数
  18. 螺旋传动设计系统lisp_螺旋传动设计
  19. pip国内镜像解决no matching distribution found for XXX
  20. 安全检测80端口Web服务攻击痕迹(上)

热门文章

  1. 延时求和波束形成的MATLAB仿真
  2. 如何为SFP光模块搭配对应的光纤跳线?
  3. nginx DNS 缓存问题
  4. 第215天:Angular---指令
  5. Hibernate用Mysql数据库时链接关闭异常的解决
  6. /usr/bin被删除的操作
  7. 集成信息医院需要什么样的集成平台
  8. 使用8位字节的编码格式将字节流安全的转换成String
  9. ubuntu 创建github公钥
  10. 未发现数据源名称并且未指定默认驱动程序_10个有用的HTML5功能,您可能未使用