Lost administrator password

Discussion in 'iMac' started by flyster, Sep 26, 2015.

  1. flyster macrumors newbie

    Jul 18, 2011
    I've lost my admin password for my mac (10.6.8) what is the best way to get this back, i must of changed the password to a subject enntirely different to my hint as not even that is working, obviosuly i do not want to lose my mp3's and other files, so safest opetion please.
  2. Weaselboy Moderator


    Staff Member

    Jan 23, 2005
    Reboot then hold command-s at startup to get to single suer mode where you will see a command line.

    Then type this to mount the drive:

    mount -uw /
    Then this to list the users and grab your username:

    ls /Users
    Then this to reset the password substituting your own username:

    passwd username
    Then type reboot and enter the new password.

    This will get you back into the account, however your Keychain will still be locked with the old password and there is no way around this. You will need to reset the Keychain and start over.
  3. flyster thread starter macrumors newbie

    Jul 18, 2011
    this is definately the safest option i'm ot going to lose my files, the word 'reboot' makes me **** a brick!!!!

Share This Page