Reset user password on mac with M1
Today I received a question from one of my friends, how to reset a user password on a M1 mac. After few emails, he successfully manege to reset the password on his M1 mac mini.
The process is actually very simple, but because it's not directly available from the login screen on your mac, it requires the user to reboot the mac into recovery mode.
Here is the procedure for how to rest your user password on an M1 mac, just bear in mind, this one is for users that do not have there drives encrypted:
- Turn off your mac
- Wait about 10-20 seconds after shutdown, to make sure that the mac is off
- Press the power button and hold for about 10 seconds, until you will see on screen the Apple Logo and under it something like 'loading setup options', after that release the power button
- Now you should see icons on screen like: your hard drive and the 'Options' icon, click on the icon, it should display under a field 'Continue' click on it.
- You will see the macOS recovery login screen, you will need to click on 'Forgot all passwords'
- Now the system will try to confirm that you are you and ask you to log into your AppleID, please do so.
- After successful AppleID login, click EXIT on the bottom
- The mac will now start the recovery menu
- When recovery menu will be displayed, you will have options like Restore the Operating System etc.
- Click on the TOP menu bar on Utilities, choose from the drop down list Terminal
- When terminal will open, type the following
- After few seconds you will see a list of all users on the mac
- Click on 'Forget all passwords'
- The system will display another windows with the 'Deactivate mac' option, please click on the 'Deactivate mac' field.
- Confirm with click on 'Deactivate' again
- After few seconds the system will ask you again to log into your AppleID, please do so
- Now you will see a list of all your users on this mac, on the right you will have options to set new passwords for all accounts, please set new passwords for all accounts on the mac (not just one account, all of them)
- After setting all new password, you can click EXIT
- Click on the Apple logo in the left top cornet, and select restart
- System will restart and load the login screen for you mac, choose your user and input your new password.
Just a warning on the end, this procedure will reset the Keychain on all accounts, this means that any saved password in it will not be available any more.