We have so many passwords that forgetting one happens to all of us, especially if you use fingerprint logins instead of typing in the password every day. At one time or another, we have all forgotten our passwords and need to reset them.
Resetting your admin password using Terminal can be quite easy as long as your Mac is not linked to iCloud and you do not have a firmware password or you still know your firmware password if you have one.
My name is Eric and I have been working with various computer systems for over 4 decades but I am still learning new systems all the time and Macs are my newest endeavor. I just learned how to reset my password using Mac Terminal and I want to share my findings with you.
Continue reading if you would like to see what I have learned about resetting the admin password on a Mac.
- How to Reset Admin Password via Terminal (When Your Mac Is Not Linked to iCloud)
- Step 1: Shut down your Mac
- Step 2: Start your Mac in Recovery Mode
- Step 3: Select Options on the Recovery screen
- Step 4: Click on the Forgot all passwords link
- Step 5: Click on Exit to Recovery
- Step 6: Open Mac Terminal
- Step 7: Type the password reset command
- Step 8: Deactivate Mac
- Step 8: Enter your new password
- Step 9: Restart your Mac and log in with the new password
- What If The Password Reset via Terminal Method Isn’t Working
- Closing Thoughts
Step 1: Shut down your Mac
Click on the Apple symbol in the upper left corner of the screen and select Shut Down.
Step 2: Start your Mac in Recovery Mode
For machines with Apple Silicon (or Apple chipset), press the power button and hold it down until you see the message Loading Startup Options.
For Intel-based machines hold down the Command and R keys until you see the same message.
To determine which chipset you have, click on the Apple logo and select “About this Mac”. Then click on Overview. You will see the chipset shown on the screen as you can see below.
Step 3: Select Options on the Recovery screen
Once the recovery screen loads, select the Options icon.
After this, you will see a screen asking you to select a user that you know the password for. Click on the Forgot all passwords? Link.
Step 5: Click on Exit to Recovery
If your Mac’s iCloud is not enabled you will be taken to a screen that says your Mac is not activation locked and that you can proceed without authentication.
Click on Exit to Recovery.
This will take you back to the main macOS Recovery screen which has the menu you need to select and open the Terminal application.
Step 6: Open Mac Terminal
Once in Recovery mode, you will need to open the Terminal application. You can do this from the Recovery menu at the top of the screen. Click on Utilities and then select Terminal.
Step 7: Type the password reset command
After the Terminal app has opened, type the command to reset your password as shown below.
This will launch the recovery assistant.
Step 8: Deactivate Mac
The recovery assistant will have a message prompting you to deactivate your Mac. Click on Deactivate Mac and then you will be asked to confirm this action.
Click on the option to continue with deactivation and then click Next.
Step 8: Enter your new password
The next screen will ask you to enter a new password and then confirm it. You may also enter a password hint if you would like to do so.
Once you have entered the information, click on Next to continue.
Step 9: Restart your Mac and log in with the new password
You will be prompted to restart your Mac. If not, click on the Apple symbol in the upper left corner and select restart.
You may see a message giving you a choice to upgrade to the latest version of your macOS, continue with your current macOS, or Boot from another drive. Just select the option to continue with your current macOS for now. You can do the update at a later time.
Once your Mac restarts and you log in, you should be good to go with your admin password reset.
What If The Password Reset via Terminal Method Isn’t Working
There are instances in which the above method will not work. The most common reason is that you have iCloud turned on for your Mac. If this is the case, you can first turn iCloud off and then try this method again.
If you are unable to turn iCloud off, or if the above method is not working for any other reason, you will need to reset the password using your Apple ID.
If you enter the password incorrectly a couple of times at your login screen, it will prompt you to reset your password. You can click on the link and it will walk you through the process.
It will also provide you with the password hint if you have supplied one and this may possibly remind you of what the password is. In that case, you may no longer have a need to reset the password.
There are always lots of questions when it comes to admin passwords on a Mac. Below are a few of the most common.
How Can I See My Current Admin Password on Mac?
There is no way to see the current admin password. You would need to know the admin password in the first place to be able to see something at that level of security.
Even if you log in to the machine with another admin account, you are still unable to see the other user’s passwords. The only option is to reset them.
Can Someone Bypass Admin Password on My Mac?
The admin password cannot be bypassed, but if your machine is not secured with a firmware password, FileVault, or connected to iCloud, someone can potentially get into Recovery mode and reset the password or run Apple Setup and create a new admin user.
Can Anyone Who Gets My Mac Reset Admin Password and Access My Files?
Yes, they can if your computer is not secured as stated in the previous question. You can use a firmware password, FileVault, or keep your Mac connected to iCloud to protect it. This will require others to have a password when trying to get into Recovery mode.
Just make sure that you don’t forget these passwords– especially a firmware password. If you forget your firmware password you may need to take a trip to the Genius Bar at the Apple Store to get it reset.
Forgetting your admin password for your Mac can be extremely frustrating since you need it for so many important things. I hope that the information I have provided above can help you to reset your Mac admin password if needed.
Do you have any other methods for resetting passwords? Let me know I would love to hear what others have learned.