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 (这里是你的用户名)

相关文章
|
Oracle 关系型数据库
Creating ASMSNMP User reports ORA-15306
In this Document  Symptoms   Cause   Solution Applies to: Oracle Server - Enterprise Edition - Version: 11.
1389 0
|
JavaScript 前端开发 Shell
|
JavaScript 前端开发 Shell