jun.li is not in the sudoers file. This incident will be reported

简介: jun.li is not in the sudoers file. This incident will be reported

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


出现这个情况就是在服务器或者Ubuntu下使用sudo进行操作,结果发现不能操作,就会打印这个


解决办法


1,切换到root用户下,


2,添加sudo文件的写权限,

chmod u+w /etc/sudoers

3,编辑sudoers文件

vi /etc/sudoers


4,找到这行 root ALL=(ALL) ALL,在他下面添加jun.li ALL=(ALL) ALL (这里是你的用户名)

相关文章
|
5月前
|
Linux 开发工具 数据安全/隐私保护
CentOS7报错:“xxx is not in the sudoers file. This incident will be reported“解决方法
CentOS7报错:“xxx is not in the sudoers file. This incident will be reported“解决方法
585 0
error: Your local changes to the following files would be overwritten by merge
error: Your local changes to the following files would be overwritten by merge
|
Oracle 关系型数据库
Creating ASMSNMP User reports ORA-15306
In this Document  Symptoms   Cause   Solution Applies to: Oracle Server - Enterprise Edition - Version: 11.
1385 0
fatal error: gnu/stubs-n64_hard_2008.h: No such file or directory
fatal error: gnu/stubs-n64_hard_2008.h: No such file or directory
177 0
VisibilityAwareImageButton.setVisibility can only be called from within the same library group (grou
VisibilityAwareImageButton.setVisibility can only be called from within the same library group (grou
271 0
|
JavaScript 前端开发 Shell
|
JavaScript 前端开发 Shell
|
数据安全/隐私保护
Linux_服务器_03_xxx is not in the sudoers file.This incident will be reported.的解决方法
1.切换到root用户下,怎么切换就不用说了吧,不会的自己百度去.2.添加sudo文件的写权限,命令是:chmod u+w /etc/sudoers3.编辑sudoers文件vi /etc/sudoers找到这行 root ALL=(ALL) ALL,在他下面添加xxx ALL=(ALL) ALL ...
963 0