The two ways to change your username on a 2017 MacBook Pro

You can change your username in two different ways on a MacBook Pro 2017: by renaming your account in System Preferences (the faster method if you only want to change the display name), or by renaming your home folder and account name together (the more thorough method if you want the change to show everywhere on your Mac). The first method takes about five minutes. The second takes longer and requires you to create a temporary administrator account, but it changes the underlying account name that appears in Terminal and file paths.

Which one you choose depends on what you see when you look at your Mac. Open System Preferences, click Users & Groups, and look at your account. If the name you see matches what you want, you only need the first method. If you want to change the name that appears in your home folder path (visible in Finder when you click the house icon), use the second method.

Key Takeaways

  • The display name change in System Preferences is reversible and takes five minutes, but does not change your home folder name or the account name used by Terminal.
  • Changing your home folder name requires creating a temporary administrator account first, because you cannot rename your own active account folder.
  • After either change, restart your Mac to make sure the new name appears everywhere.
  • If you have FileVault encryption turned on, you must disable it before renaming your home folder, then re-enable it after the rename is complete.

Method 1: Change only the display name (five minutes)

This is the quickest option and works if you only care about the name that shows on your login screen and in the top-right corner of your menu bar. Open System Preferences by clicking the Apple menu in the top-left corner, then select System Preferences. Click Users & Groups. If the lock icon in the bottom-left is closed, click it and enter your password.

Click your account name in the left panel. In the "Full Name" field at the top right, delete the current name and type the new one. Close System Preferences. The change takes effect when ready, though you may need to restart your Mac to see it reflected everywhere (in Spotlight search results, for example). You do not need to log out.

Method 2: Change your account name and home folder (requires a temporary account)

This method changes the name that appears in your home folder path and in Terminal. It is more involved because macOS will not let you rename your own active account folder while you are logged in. You must create a second administrator account first, log into that account, then rename your original account and its home folder.

Before you start, check whether FileVault is turned on. Open System Preferences, click Security & Privacy, and click the FileVault tab. If it says "FileVault is on," you must turn it off before you proceed. Click the lock icon, enter your password, then click "Turn Off FileVault." This can take several hours depending on your drive size. Wait for it to finish before moving forward.

Create a temporary administrator account

Open System Preferences and click Users & Groups. Click the lock icon and enter your password. Click the plus sign (+) at the bottom of the account list. In the "New Account" dropdown, select Administrator. Type a temporary name (something like "Temp Admin"), create a password, and click Create. You now have a second administrator account on your Mac.

Log out of your current account. At the login screen, click the temporary administrator account and log in with the password you just created. You are now logged in as the temporary account, which means your original account is no longer active and you can rename it.

Rename your original account and home folder

Open System Preferences and click Users & Groups. Click the lock icon and enter the temporary account password. Right-click (or Control-click) your original account name in the left panel and select "Advanced Options." You will see several fields. The one labeled "Account name" is what you need to change — this is the name that appears in file paths and Terminal. Type the new account name (use lowercase letters and no spaces). Click OK.

Now you need to rename the home folder itself. Open Finder and click Macintosh HD in the sidebar (or whatever your drive is called). Navigate to Users. You will see a folder with your old account name. Right-click it and select Rename. Type the new name (it should match the account name you just entered in System Preferences). Press Enter.

Log back into your original account and clean up

Log out of the temporary administrator account. At the login screen, click your original account and log in. Your home folder and account name have both been renamed. Open System Preferences, click Users & Groups, click the lock icon, and delete the temporary administrator account. When prompted, choose "Delete the home folder" to remove it completely.

If you turned off FileVault earlier, turn it back on now. Open System Preferences, click Security & Privacy, click the FileVault tab, click the lock icon, enter your password, and click "Turn On FileVault." Your Mac will begin encrypting your drive in the background. You can use your Mac while this happens, but do not restart until encryption is complete.

What to do if something goes wrong

If you cannot log back into your original account after renaming it, restart your Mac and log in as the temporary administrator account. Open System Preferences, click Users & Groups, and check the account name in Advanced Options — it may not have saved correctly. If the home folder rename did not work, try renaming it again from the temporary account.

If you see a message that says you do not have permission to rename the folder, make sure you are logged in as the temporary administrator account, not your original account. The temporary account must be the one doing the renaming.

Frequently Asked Questions

Will changing my username affect my passwords or login?

No. Your password stays the same regardless of which method you use. You will still log in with the same password you used before. The username change only affects the display name or the account folder name, not your authentication.

Can I change my username without creating a temporary account?

If you only want to change the display name (what shows on your login screen), you do not need a temporary account — use Method 1. If you want to change the account name that appears in file paths, you must create a temporary account because macOS does not allow you to rename your own active folder.

What happens to my files when I rename my home folder?

Your files stay exactly where they are. Renaming the folder does not move or delete anything. All your documents, downloads, and applications remain accessible in the same places. The folder name just changes from the old account name to the new one.

Do I need to restart my Mac after changing my username?

For Method 1 (display name only), a restart is not required but recommended so the new name appears everywhere. For Method 2 (account name and home folder), restart after you log back into your original account to make sure all system processes recognize the new names.

Can I undo a username change?

Yes. For Method 1, straightforward go back to System Preferences and change the display name again. For Method 2, follow the same steps but use your old username instead of the new one. You will need to create a temporary administrator account again to do this.