I've lost the username to my MacBook pro

So I have a MacBook pro with macOS high sierra. I forgot both my username and password. I went through the process of going through recovery mode, accessing the terminal, and reseting the password. I am currently lost on how to get either my old username or to create a new one. I need both to login.

MacBook Pro 15", macOS 10.13

Posted on Apr 23, 2020 8:15 PM

Reply
1 reply

Apr 23, 2020 8:20 PM in response to tmgray8d

How to Create a New User Account if You Cannot Access Your Admin Account


 Please print this out before proceeding.


Reboot the computer. At the chime press and hold down the COMMAND-S keys to start into Single-user Mode. You will boot to a black screen with scrolling white text, release the keys and wait until it finishes. Enter the following lines at the command prompt pressing RETURN after each:


    mount -uw /

                ^     ^  Note spaces

    rm /var/db/.applesetupdone

        ^    Note space

    reboot


After you reboot the computer you will be taken to the Setup Assistant. When you get to the point where you are asked to set up your new user account, create a new admin account. Be sure to name this user account something different than the admin user account that already exists on the system. When you finish the Setup Assistant, it will automatically log you into the new account.


You can transfer your files from the old account to the new one. See Transferring files from one User Account to another. Once you have moved all your files into your new account, you can delete the old account using Accounts or Users & Groups preferences.

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.

I've lost the username to my MacBook pro

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