打开终端首次运行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/*
本文介绍了解决sudo命令每次运行都显示警告信息的问题。通过调整文件权限和所有者,可以避免普通用户收到不必要的提示。
7692

被折叠的 条评论
为什么被折叠?



