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

目录
打赏
0
0
0
0
1
分享
相关文章
|
10月前
Manage Audit File Directory Growth with cron (Doc ID 1298957.1)
Manage Audit File Directory Growth with cron (Doc ID 1298957.1)
48 3
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