用户名 不在 sudoers文件中,此事将被报告

解决方法:
1.通过编辑器来打开/etc/sudoers
2.直接使用命令visudo
打开sudoers后,如下加上自己的帐号保存后就可以了。

# User privilege specification  
root    ALL=(ALL:ALL) ALL  
yeching    ALL=(ALL:ALL) ALL  
原文地址:https://www.cnblogs.com/YeChing/p/6247231.html