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

相关文章
|
3月前
Manage Audit File Directory Growth with cron (Doc ID 1298957.1)
Manage Audit File Directory Growth with cron (Doc ID 1298957.1)
29 3
|
存储 算法 Python
Crystallographic Information File
Crystallographic Information File(CIF)是一种用于存储晶体结构信息的标准文件格式,通常用于存储X射线衍射、中子衍射、电子衍射等晶体结构分析的数据。CIF文件包含了晶胞参数、原子坐标、晶体对称性等结构信息,是进行晶体结构分析和制备的基础数据。
411 1
|
JavaScript 前端开发 Shell
|
JavaScript 前端开发 Shell