xxx is not in the sudoers file.This incident will be reported.的解决方法

1.centos系统切换到root用户下:输入su,输入密码(密码是看不见的);切换到普通用户下:su 用户名。centos 2.添加sudo文件的写权限,命令是: chmod u+w /etc/sudoers 3.编辑sudoers文件 vi /etc/sudoers 找到这行 root ALL=(ALL) ALL,在他下面添加xxx ALL=(ALL) ALL (这里的xxx是你的用户名) p
相关文章
相关标签/搜索