Reputation: 2617
I have just updated to OSX Yosemite and every time I execute a sudo
command, the OS issues this warning before the password prompt:
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.
How can this warning be silenced?
Upvotes: 6
Views: 2328
Reputation: 3327
To remove the warning, open the sudoers file:
sudo visudo
Add this line (to keep it tidy, just after the other Defaults
):
Defaults:al !lecture
I've tried to set it to just "once" (Defaults lecture = once
) but that seemed to be ignored.
Upvotes: 3