You Can’t Run Administrator Commands in Terminal
Certain Mac operations require you to open the Terminal application and run a command as an administrator by using the sudo (super user do) command. When you first enter the sudo (pronounced soo-doo) command followed by the actual command you want to execute, Terminal prompts you for your MacBook Air administrator password.
It’s important to note that the sudo command requires some kind of password. If your MacBook Air administrator password is blank, you might be tempted to press Return when sudo asks you for a password. Unfortunately, that won’t work because sudo will simply drop you back off at the command prompt without doing anything.
If you want to run administrator commands in Terminal, you must create a nonblank password for your MacBook Air administrator account. This has the added benefit of greatly increasing your MacBook Air security because the administrator account should always have a nonblank password.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access