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

来源:互联网 发布:超级淘宝系统txt下载 编辑:程序博客网 时间:2024/06/10 19:05



看提示 应该是 sudoers file文件里面缺少 #user用户

所以寻找sudoers 文件添加用户

打开文件

[root@localhost innjia]# chmod u+w /etc/sudoers
[root@localhost innjia]# vim  /etc/sudoers


添加用户


1:切换到超级用户

[nnjia@localhost ~]$ su
Password: 

2:添加文件写入权限
[root@localhost innjia]# chmod u+w /etc/sudoers

3:添加用户,保存


4:去掉写入权限 

[root@localhost innjia]# chmod u-w /etc/sudoers


5:exit 退出超级用户,然后就OK了





0 0