Mac OS X Password Recovery

Instructions for the Mac OS X Password Recovery.

Although there’s no real way to recover a lost root password, you can change the root password even if you do not know the current one. You must have physical access to the machine in order to accomplish this task.

1. Click Restart at the login window

2. While the computer is restarting, hold down “Command-S” until you see text scrolling through the window. This boots the computer into single user mode.

3. At the Localhost% prompt type:

/sbin/fsck -y
/sbin/mount -uw /
/sbin/SystemStarter

You will then see various services starting up.

4. When the Localhost% prompt reappears, type:

passwd [username]

It will then ask you to type the new root password twice, so do so.

(Though I’ve not tried it, it appears you can type niutil -list . /users to get a list if users if you do not know the username….if someone wants to verify this, I would be most appreciative).

5. After entering the new password, type:

reboot

6. At the login window, enter the username with the new password. Once you are logged in, you can use the Multiple Users application (/Applications/Utilities) to change your user’s password, or create a new user account.

Note: this may not work for newer versions of OS X; I think they did something about it in a security update.

130 Responses to “Mac OS X Password Recovery”

  1. […] My post on Mac OS X Password Recovery that I made almost a year ago continues to get comments today. It’s a fairly common issue. Since it has reached 126 comments (and the page is getting long), I’ve decided to close comments. You can continue discussion by leaving a comment here. No Votes Yet – Vote Now! […]

  2. […] I did some searching on Google and found a page that discusses how to hack passwords on a Mac. Various methods suggested on several pages of comments to that page had failed. Figuring I had nothing to lose I decided to try mixing the methods I had found until I found one that worked. I figured if I hosed the machine at this point it wouldn’t be a big deal. The machine was useless to me in it’s current state anyway so I would have had no qualms about clearing the hard drive and starting from scratch. The only reason I was still going at it was for the challenge. So off I went. […]

  3. […] Mac OS X Password Recovery Although there’s no real way to recover a lost root password, you can change the root password even if you do not know the current one. You must have physical access to the machine in order to accomplish this task. […]

  4. […] busco en Google “Password Mac OS X” y el tercer resultado me lleva a la bitácora de Elliot Lee en donde encontré las instrucciones para cambiar la contraseña del usuario o la del […]

  5. […] and is well documented (here are a couple of tutorials…and don’t use them maliciously: site1 […]