问题. xxx is not in the sudoers file. This incident will be reported.(当想要以 xxx的身份切换到root权限时,使用sudo su命令,并按提示输入 *** 的密码后出现的错误提示)
1.进入recovery mode模式
重启系统,并一直按着 Shift 键。
Enter键进入
E键 进行编辑
F10 以启动系统
选择root, Enter键进入控制台。
执行,给root写权限
mount -o remount rw /
更改 /etc/sudoers 文件
vi /etc/sudoers
保存,重启系统。