Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚更新到 OSX Yosemite,每次执行sudo命令时,操作系统都会在密码提示之前发出此警告:
sudo
WARNING: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo.
怎样才能消除这种警告?
要删除警告,请打开 sudoers 文件:
sudo visudo
添加这一行(为了保持整洁,就在另一行之后Defaults):
Defaults
Defaults:al !lecture
我试图将其设置为“一次”(Defaults lecture = once),但这似乎被忽略了。
Defaults lecture = once