I've erased the password from preference
now I can log in without using any password but when I run a sudo
command terminal ask me a password if I insert nothing or the old one it return error. What's happen?
Sudo password doesn’t work even if I have no password
passwordsudoterminal
Related Question
- Password problems changing users in Terminal
- How to run sudo command from standard account
- MacOS – sudo: unable to cache user root, already exists
- Terminal becomes unresponsive when a “sudo” password prompt is displayed
- macOS Terminal – How Does the Sudo Key Symbol Work?
- MacOS – Enable sudo without a password on MacOS
- How to Make Sudo in Two Terminal Tabs Ask for Password Only Once
- macOS Sudo Issues – Admin Password Not Working for sudo?
Best Answer
sudo
requires a password by default on Mac OS X.Apple's knowledge base article explains more, Mac OS X: sudo command requires a non-blank admin password:
If you must remove the need for a password to use
sudo
, you can edit the/etc/sudoers
file usingvisudo
command. A thread on macoshints discusses how:Requiring a password is highly recommended. Removing this check reduces the security of your Mac and exposes your computer to attack or abuse.