打开终端首次运行sudo都会抛出警告,内容如下:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
权限问题,普通用户拥有了访问sudo lectured(就是这个提醒的)的权限,关闭他的权限即可
sudo chown root:root /var/db/sudo/lectured
sudo chown -R root:root /var/db/sudo/lectured
sudo chmod 600 /var/db/sudo/lectured/*