Mac Login asking for name and password

Hello,

I restarted my Mac and it asked for Name and Password which it has never asked before. I tried different login name including volume name and didn’t work. I tried command + R to reset and didn’t work. Before I reached the screen in the photo I entered a password without having to enter a name at startup which seemed to be correct to get me here. Can anyone help please?


thanks,

MacBook Pro 13", macOS 10.13

Posted on Nov 6, 2019 8:28 AM

Reply
3 replies

Nov 6, 2019 3:21 PM in response to Bgeaibreyi

I've encountered this macOS bug on some systems. To access your account you will first need to create a new user account. After creating a new user account your old account will be visible on the login screen again. You will need to keep this new user account until Apple fixes this bug.


To create a new user account you need to boot into Recovery Mode. Once booted to Recovery Mode launch the Terminal app from the Utilities menu. Then type the following commands and press the "Return" key at the end of each line.


Find the volume name for your boot volume:

mount  |  grep  -i  volume


Unless you renamed your boot volume the default volume name for macOS is "Macintosh HD".


Now enter the following command. Make sure to substitute the name of your actual boot volume in place of "Macintosh HD" in my example.

rm  -i  "/Volumes/Macintosh HD/var/db/.AppleSetupDone"


Now restart the computer. Setup Assistant should run so you can create a new administrator account. Once you complete the setup process reboot the computer again and you should now see your login name & picture displayed as an option.

Nov 9, 2019 4:01 PM in response to Bgeaibreyi

When you ran the "mount" command, did you see "Macintosh HD"? If not, then the volume name was changed. You need to use the volume name reported by the "mount" command in place of the "Macintosh HD" shown in my example. Feel free to post a screenshot of the above commands when you run them.


In addition post the output of the following command making sure to substitute the correct volume name in place of the "Macintosh HD":

ls  -hal  "/Volumes/Macintosh HD/var/db"  |  grep  -i  apple



Also what version of macOS are you running on this computer?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mac Login asking for name and password

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