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