You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

How to log in if I reset my name incorrectly

I’m an idiot and didn’t see the “create a second admin to change your name from” part of the instructions for updating my last name on my MacBook Air. Now I can’t log in to my account in preferences. How do I fix this?

MacBook Air

Posted on Nov 29, 2021 3:25 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 29, 2021 9:35 PM

KAP1694 Said:

"How to log in if I reset my name incorrectly: I’m an idiot and didn’t see the “create a second admin to change your name from” part of the instructions for updating my last name on my MacBook Air. Now I can’t log in to my account in preferences. How do I fix this?"

-------


Perform the Following:

Go Here: Change the Name of your macOS User Account and Home Folder - Apple Support

The Home Folder needs to be changed too. So, Create an Administrator user, and then proceed from there.

2 replies
Question marked as Top-ranking reply

Nov 29, 2021 9:35 PM in response to KAP1694

KAP1694 Said:

"How to log in if I reset my name incorrectly: I’m an idiot and didn’t see the “create a second admin to change your name from” part of the instructions for updating my last name on my MacBook Air. Now I can’t log in to my account in preferences. How do I fix this?"

-------


Perform the Following:

Go Here: Change the Name of your macOS User Account and Home Folder - Apple Support

The Home Folder needs to be changed too. So, Create an Administrator user, and then proceed from there.

Nov 29, 2021 9:22 PM in response to KAP1694

Hi KAP1694,


You will need to trick your Mac into thinking that it was never set up before. This will allow you to create a second administrator account that you can use to repair your original account.


  1. Start up in macOS Recovery.
  2. If you're asked to authenticate in macOS Recovery, do so to continue. Or, click Forgot All Passwords at the bottom and see if you can sign in with your Apple ID.
  3. If successful, you should now see a list of utilities. Select Disk Utility and click Continue.
  4. In Disk Utility, look for an entry named "Macintosh HD", under the Internal header. This entry might be named differently; if it is, take note of that name.
  5. If an arrow and an icon looking like a stack of sheets appears next to "Macintosh HD", click the arrow to expand the volume group and reveal the volumes inside.
  6. Select "Macintosh HD" (with a disk icon). If a Mount (not Unmount) button appears, click on it. You might be asked to enter your login password to continue.
  7. If a "Macintosh HD - Data" or "Data" entry also appears, select it. If a Mount (not Unmount) button appears, click on it. You might be asked to enter your login password to continue.
  8. When finished, quit Disk Utility.
  9. You should now return to the list of utilities. At the top of the screen, select Utilities -> Terminal.
  10. This is the important step. Type the command below and hit Enter (Return), and it will delete a special file that tells your Mac that it has been set up. Once this file is gone, your Mac will act as if it is completely new (but your data will be preserved).


If your startup disk is NOT named "Macintosh HD", replace "Macintosh HD" with the real name of your startup disk:


rm "/Volumes/Macintosh HD/private/var/db/.AppleSetupDone"


Once you've ran the command below, restart your Mac, and log in if prompted. Your Mac will then start the Setup Assistant. Choose not to migrate any data, and you will be allowed to create a new user account. Use a different username and password than your regular account. Then, complete the rest of the Setup Assistant. You will end up inside the new administrator account.


Use the new administrator account to fix any errors you made with your regular account, then make sure that your regular account is an administrator (System Preferences -> Users and Groups). Once you're able to sign back in to your regular account, you can delete the temporary admin you made earlier.

How to log in if I reset my name incorrectly

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