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