Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Cannot Unlock to Make Changes due to forgotten User Name and Password

I cannot unlock because at first I try to change the name of Admin and I did not clearly read all what Mac said. Then when I try to unlock it requires me to fill in User Name and Password and the system change me to Standard instead of Admin. Therefore, even I try the to fill User Name and Password, they are all incorrect. Anyone knows how to solve this problem please help me. I would like to know how I can know my Admin User Name and Password. Thank you very much.

Posted on Apr 2, 2020 5:52 AM

Reply
Question marked as Best reply

Posted on Apr 2, 2020 12:20 PM

You can create a new administrator account by restarting the Setup Assistant:

  1. Boot into Single User Mode: Start/restart your Mac. As soon as you hear the startup tone, press and hold ⌘ + S until you see a black screen with white lettering. (If you end up back on the login screen after a flash of the black screen with white lettering, enter your password and it will return to the black screen.)
  2. Check and repair the drive by typing /sbin/fsck -fy then ↩ enter - as directed by the on-screen text.
  3. Mount the drive as read-write by typing /sbin/mount -uw / then ↩ enter.
  4. Remove the Apple Setup Done file by typing rm /var/db/.AppleSetupDone then ↩ enter.
  5. Reboot by typing reboot then ↩ enter.
  6. Complete the setup process, creating a new admin account.


Be very careful to notice the spaces in those Terminal Commands.


Once you've done that the computer reboots and it's like the first time you used the machine. Your old accounts are all safe. From there you just change all other account passwords in the account preferences!!

3 replies
Question marked as Best reply

Apr 2, 2020 12:20 PM in response to prue-sa

You can create a new administrator account by restarting the Setup Assistant:

  1. Boot into Single User Mode: Start/restart your Mac. As soon as you hear the startup tone, press and hold ⌘ + S until you see a black screen with white lettering. (If you end up back on the login screen after a flash of the black screen with white lettering, enter your password and it will return to the black screen.)
  2. Check and repair the drive by typing /sbin/fsck -fy then ↩ enter - as directed by the on-screen text.
  3. Mount the drive as read-write by typing /sbin/mount -uw / then ↩ enter.
  4. Remove the Apple Setup Done file by typing rm /var/db/.AppleSetupDone then ↩ enter.
  5. Reboot by typing reboot then ↩ enter.
  6. Complete the setup process, creating a new admin account.


Be very careful to notice the spaces in those Terminal Commands.


Once you've done that the computer reboots and it's like the first time you used the machine. Your old accounts are all safe. From there you just change all other account passwords in the account preferences!!

Cannot Unlock to Make Changes due to forgotten User Name and Password

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.