Change Mac Login Password Using Terminal: M1 and Intel Macs

Last Updated on May 8, 2021

Mac Login Password is very crucial, and it’s always recommended to keep changing it. There are several ways to change Mac Login Password; in this article, we’re covering the easiest one; yes, you can change Mac Login Password using Terminal within no time. However, there are two ways to do it, using Recovery Mode when the internal settings won’t let you do it directly, and the other is using Mac’s Terminal app without going to recovery mode.

we are happy to help you, submit this Form, if your solution is not covered in this article.

Also, the process to change the login password in Mac M1 is almost similar, though we’ve highlighted it separately to make it clear for our readers.

How to Change Mac Login Password Using Terminal: w/o Recovery Mode (For M1 Mac and Intel-based Mac)

Certain features like Screen Time, Down Time, App Limits, Content & Privacy Restrictions could stop you from changing the Mac Login Password directly from the System Preferences. All of your Mac Login Accounts can be manageable from the Users & Groups section of System Preferences; however, some users have found the Change Password button greyed out on Mac. In such cases, use the Terminal to change login password on Mac, MacBook in macOS Big Sur, Catalina, Mojave, or earlier.

  1. Launch the Terminal app. To do so, press the Command + Space bar to open Spotlight search and then enter the Terminal app to open it.
  2. In the Terminal app, enter the passwd command, hit enter.change-mac-login-password-command-using-terminal
  3. You’ll need to enter the Old Password, and then only the system will allow you to enter New Password.enter-old-password-and-type-new-password-for-two-times
  4. Re-enter New Password.
  5. Hit Enter.new-login-password-apply-on-mac

By this, you’ve successfully changed the Mac Login Password using Terminal.

Also, Update your Mac login password in Keychain using Terminal, Fix “This tool does not update the login keychain password”.

Type the command: security set-keychain-password and hit the return. Next, Enter Old password, and Type a New password that you set recently. and Your Password also saved on Keychain.

also-change-in-icloud-keychain-using-terminal-on-mac
also-change-in-icloud-keychain-using-terminal-on-mac

How to Change Mac Login Password using Terminal: w/ Recovery Mode

If the above method didn’t work out for you, then Recovery Mode is another excellent option to reset login password on MacBook Pro, MacBook Air, Mac using Terminal. I’ve broken the tutorial into two different parts, one for Apple Silicon-based M1 Mac and the other for the old Intel-based machines.

For Mac with Apple Silicon-based M1 Chip:

  1. Shut down the Mac. To do so, click on the Apple logo on the top menu bar.
  2. Select Shut Down.
  3. After 20 seconds, hold down the Power button until you see the Mac Startup Disk and Options (Settings icon).
  4. Click on the Option (Settings icon) and Continue.
  5. Skip the next dialogue if it says to Forgot All Passwords since you don’t want to do this.
  6. The next screen will bring the Recovery Options including: Restore from Time Machine, Reinstall macOS Big Sur, Safari, and Disk Utility.
  7. Look for the top menu bar, and there you will see the Utilities option.
  8. From there, select Terminal.
  9. In the Terminal screen, enter resetpassword command and hit return.
  10. Enter Old password and hit return, next Enter new password, and Again, confirm a new password. That’s it.

For Intel-based Mac:

  1. Shut down your Mac, click on the Apple icon and choose Shut Down.
  2. Now turn on the Mac and press and hold the Command + R.
  3. Apple logo or spinning wheel or startup screen will appear, release the Command + R keys when startup disk Volume appears on the screen.
  4. In the top menu bar, click on the Utilities.
  5. Select Terminal.
  6. Type resetpassword command and press enter key.
  7. Enter Old password and hit return, next Enter new password, and Again, confirm a new password. That’s it.

Finishing up, this tutorial is enough to reset the Mac Login Password on M1 and Intel Macs. We’ve also prepared s detailed guide on How to Reset Mac Login Forgotten Password on Apple Silicon Mac’s using Apple ID too. If you prefer that way, visit our article to know.

jaysukh patel

Jaysukh Patel is the founder of howtoisolve. Also self Professional Developer, Techno lover mainly for iPhone, iPad, iPod Touch and iOS, Jaysukh is one of responsible person in his family. Contact On: [email protected] [OR] [email protected]

We will be happy to hear your thoughts

Leave a reply

HOWTOISOLVE
Logo