Difficulty

Easy

Steps

7

Time Required

                          2 - 10 minutes            

Sections

1

  • How to reset the password on a Mac
  • 7 steps

Flags

Member-Contributed Guide

An awesome member of our community made this guide. It is not managed by iFixit staff.

  • BackMac

  • Full Screen

  • Options

  • History

  • Save to Favorites

  • Download PDF

  • Edit

  • Translate

  • Get Shareable Link

  • Embed This Guide

  • Notify Me of Changes

  • Stop Notifications

Introduction

If you have a Firmware Password enabled on your Mac, you must disable it otherwise this guide will not work!

This will NOT work if FileVault is enabled!

The instructions in this guide WILL NOT work on a Mac with an Apple T2 Chip or an Apple Silicon processor (such as the M1).

Step 1

              Start your Mac in Single-User Mode               
  • Shut down your Mac
  • Press and hold the Command + S keys while pressing the power button to turn on your Mac.
  • It is best to start holding the keys before the screen turns on or you hear the startup chime. If you see the Apple logo, then you need to shut down and to do this step over. Except on a Mac with a T2 chip, the Apple logo will always appear the second the computer turns on.
  • You should see a black screen with white text.

Shut down your Mac

Press and hold the Command + S keys while pressing the power button to turn on your Mac.

It is best to start holding the keys before the screen turns on or you hear the startup chime. If you see the Apple logo, then you need to shut down and to do this step over. Except on a Mac with a T2 chip, the Apple logo will always appear the second the computer turns on.

You should see a black screen with white text.

1024

Step 2

              Mount root device as read-write               
  • When the text stops, you should see a line that says “localhost:/ root#” at the bottom. If you don’t see “localhost:/ root#”, press enter.
  • Type in “mount -uw”
  • Some more text will appear on the screen. when you see the “localhost:/ root#“at the bottom, continue to the next step

When the text stops, you should see a line that says “localhost:/ root#” at the bottom. If you don’t see “localhost:/ root#”, press enter.

Type in “mount -uw”

Some more text will appear on the screen. when you see the “localhost:/ root#“at the bottom, continue to the next step

Step 3

              Remove the .AppleSetupDone file               
  • Type in, “rm /var/db/.AppleSetupDone” and press enter/ return
  • This is case sensitive!
  • There must be a space in between the rm and / otherwise you will get a “no such file or directory” error
  • This method WILL NOT work if FileVault is enabled on the startup disk.

Type in, “rm /var/db/.AppleSetupDone” and press enter/ return

This is case sensitive!

There must be a space in between the rm and / otherwise you will get a “no such file or directory” error

This method WILL NOT work if FileVault is enabled on the startup disk.

Step 4

              Override root/wheel for /var/db/.AppleSetupDone               
  • If you get a message that says “override r——- root/wheel for /var/db/.AppleSetupDone?”, type in “y” and press enter/return.
  • You may get an error that says, “rm: /var/db/.AppleSetupDone: read-only file system.
  • If you don’t see a message that says “override r——- root/wheel for /var/db/.AppleSetupDone?”, then continue to the next step.

If you get a message that says “override r——- root/wheel for /var/db/.AppleSetupDone?”, type in “y” and press enter/return.

You may get an error that says, “rm: /var/db/.AppleSetupDone: read-only file system.

If you don’t see a message that says “override r——- root/wheel for /var/db/.AppleSetupDone?”, then continue to the next step.

Step 5

              Reboot computer               
  • Type in “reboot” and press enter/return.

Type in “reboot” and press enter/return.

Step 6

              Setup your Mac               
  • Your Mac will now reboot to the Setup Assistant. you can now set up your Mac.

Your Mac will now reboot to the Setup Assistant. you can now set up your Mac.

Step 7

              Congratulations               
  • You have now created a new user account with full administrator access. And all the user accounts created prior to this remain untouched

You have now created a new user account with full administrator access. And all the user accounts created prior to this remain untouched

You have now successfully created a new administrator account on your Mac.

Cancel: I did not complete this guide.

                                                                                      14 other people completed this guide.                                             

Author

                                      with 3 other contributors 

                    Elijah                     

Member since: 12/16/2018

874 Reputation

                                      2 Guides authored                  



                       Badges:
                       11







                                                        +8 more badges                           

dhinostroza - Feb 12, 2020

Reply

What are the steps to overcome the error?

“You may get an error that says, rm: /var/db/.AppleSetupDone: read-only file system.”

Elijah - Feb 29, 2020

This error can be caused because FileVault is enabled or that there was some random error. Try running the same commands in Terminal in the macOS recovery partition and see if that works. This error may also occur on a Mac with a T2 chip. If FileVault is enabled, you will have to erase the hard drive/SSD and reinstall macOS if you forgot your password.

Nathanlee Jany - Nov 12, 2022

Reply

Diese Bilder sind ziemlich verschwommen zu lesen. stumble guys online