Ubuntu版本,在一般用户下执行sudo命令提示user is not in the sudoers file. This incident will be reported.解决方法:
找出文件所在的位置,默认都是/etc/sudoers
root@iZm5e9phbzdxx0lysrv9t2Z:~# whereis sudoers
sudoers: /etc/sudoers /etc/sudoers.d /usr/share/man/man5/sudoers.5.gz
root@iZm5e9phbzdxx0lysrv9t2Z:~#
vim /etc/sudoers 命令,增加用户
root@iZm5e9phbzdxx0lysrv9t2Z:~# vim /etc/sudoers
user is not in the sudoers file. This incident will be reported 解决方法_一路奔跑94的博客-CSDN博客
xxx is not in the sudoers file.This incident will be reported错误_一只积极向上的小咸鱼的博客-CSDN博客