HT201065: What to do before selling or giving away your Mac

Learn about What to do before selling or giving away your Mac
redlynn

Q: What do I do if I forget my user? I know the password. Cannot change any preferences or users

HHow do I find out my user name as I cannot unlock to change administrator?

MacBook Air, OS X Yosemite (10.10)

Posted on Jun 6, 2015 11:58 AM

Close

Q: What do I do if I forget my user? I know the password. Cannot change any preferences or users

  • All replies
  • Helpful answers

  • by dominic23,

    dominic23 dominic23 Jun 7, 2015 12:38 PM in response to redlynn
    Level 8 (41,531 points)
    Mac OS X
    Jun 7, 2015 12:38 PM in response to redlynn

    How to find the forgotten  username?

     

    How to find the username using Recovery HD?

     

    Start the computer,then press and hold down command and R keys to start into recovery partition.

    When you see the Apple logo, release the keys.

    Wait until  OS X Utilities window shows up.

     

    Move the mouse to the menubar at the top and click "Utilities", then select "Terminal"

    from the drop down.

     

    Terminal window will appear.

    Type in   resetpassword   and press enter on the keyboard.

    Leave the Terminal window open.

     

    Reset Password Utility window will open with Macintosh HD selected.

    Select the user account from the popup menu box under “Select user account”.

     

    Note down the user account name.

    Close the windows.

     

    Click  in the menubar and select Restart.

    Log in.