Daily Archives: February 11, 2010

OS X Single User Mode – reset forgotten password

Have you forgotten your OS X password? Maybe you bought a second hand Mac and don’t know the password, or even the username? This quick guide will solve your troubles.

  1. Shutdown your Mac
  2. Start the Mac whilst holding down Command + s
  3. The mac should boot to a command prompt with white text on a black background.
  4. Type: sh /etc/rc
  5. Now if you know your username, skip to step 9, otherwise follow on…
  6. Type: cd /Users
  7. Type: ls
  8. You are now looking at the contents of the Users folders where the users’ home directories are. The directories will match the names of the users, ergo you now have a username to change the password for. (You may need to repeat this if there are multiple users until you find an admin user.)
  9. Type: passwd username – where username is the name you want to change the password for.
  10. You now type a new password and confirm it.
  11. Type: shutdown -r now
  12. The Mac will now reboot and you can log in with your new password. From here, you can set up new user accounts via System Preferences etc.

I hope that helps someone out there.