Multiuser operating systems, such as Mac OS X or Linux, come with a mode that boots into a single superuser account. The single-user mode is used mostly for maintenance purposes and, on Mac computers, it can be accessed by holding the Command key and S on startup. Recovering the admin password using the single-user mode requires either the ability to follow instructions to a T or comprehensive admin knowledge.

  1. Access the single-user mode by holding the Command key and S on startup.
  2. Type in “mount –uw /” and hit enter.
  3. Type in “launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist” and hit enter.
  4. Type in “passwd [username]” and hit enter.
    • Replace [username] with the name of your account.
  5. Reset your password.
  6. Type in “reboot” and hit enter.
  7. Log in with your new admin password.