How to reset your Mac password without any media

I ran into a scenario today where a user needed some things done to his Macbook air, but didn’t know his admin account password.  This can be remedied a little easier if you have the recovery media for OSX, but this user didn’t.  Here is the process I went through in order to reset the password.

Stage 1) Boot into Single User Mode and remove a setup file

  • Restart the Mac holding down the Command+S keys, this will take you into Single User Mode and it’s Terminal interface
  • You’ll need to check the filesystem first:

fsck -fy

  • Next, you must mount the root drive as writeable so that changes will save:

mount -uw /

  • Now, type the following command exactly, followed by the enter key:

rm /var/db/.applesetupdone

  • After removing the applesetupdone file, you need to reboot, type ‘reboot’ and hit enter

Stage 2) Create a New User Account upon System Boot
You aren’t finished, but the hard part is now over – no more command lines, you’ll now be in the familiar Mac OS X GUI to finish the password reset process. In this step we just create a new user account as if you just got a new Mac:

  • Upon reboot, you will be presented with the traditional “Welcome Wizard” startup screen just like when you first get a Mac
  • Follow the welcome wizard and create a new user account – making the account name different from the account whose password you want to recover
  • Continue on and boot into Mac OS X with this newly created user account, this new user account is an Administrator and has administrative access

Stage 3) Reset the Forgot Password via System Preferences
You are almost done, now you just need to reset the forgotten user account password using the Accounts control panel:

  • Once you are booted into Mac OS X, click on the Apple logo and then navigate down to “System Preferences”
  • Click on the “Accounts” icon in System Preferences
  • Click on the Lock icon in the lower left corner of the “Accounts” preference window and enter the newly created user credentials, this enables you to change other user accounts and reset other users passwords
  • On the left side user panel, select the user account containing the forgotten password
  • With the user of the forgotten password account selected, click on the “Reset Password” button
  • Enter a new password for that user, be sure to include a meaningful hint so you don’t forget it again!
  • Close System Preferences and reboot the Mac
  • You can now login to the previously inaccessible user account using the newly reset password! All user files and settings are maintained as before the password was forgotten

Optional: If you’d like, you can delete the temporary account you created to reset the users password. This is wise for security purposes.

4 Responses

  1. Estoy de acuerdo con lo que dice Izquiera Unida sobre la necesidad de que el Ayuntamiento de Salamanca negocie con los vecinos tras la manifestación, que fue un éxito sin paliativos, y es una muestra del “cabreo” de los vecinos ante esta forma de actuar del Alcalde.Pero creo que si no se avienen a razones, habrá que ir pensando en nuevas movilizaciones para hacerles entrar en razón.

  2. http://www./ says:

    É fácil.Se os ajuntamentos de duas pessoas são considerados manifestações; se as manifestações só são legais se formalmente comunicadas às autoridades competentes por três pessoas. Então, os ajuntamentos de duas pessoas são ilegais.Custas pelo Réu…

  3. http://www./ says:

    It seems to me that this website doesnt download in a Motorola Droid. Are other folks getting the same issue? I enjoy this website and dont want to have to miss it when Im away from my computer.

Leave a Reply