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?
To run commands with superuser privileges, use the sudo command. sudo stands for superuser do. You're asked for the password of the current user. You're asked to enter the password for adminUsername, after which a new shell is opened for that user.
If you run sudo su , that will open a shell as the superuser. Type exit or Ctrl - D to exit this shell.
What is sudo in Mac Terminal? Sudo is short for superuser do. It allows the permitted user (the administrator user) to run commands in Mac Terminal as a superuser or another user with extra security privileges.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With