Change the name of your macOS user account and home folder

You can rename your macOS user account and home folder, which were named when the account was created.

Doing this incorrectly could damage your account and prevent you from logging in with that account. Make sure that you have a backup before continuing. These steps do not change or reset the password of your user account.

The name of your home folder and the name of your macOS user account must both be the same. To change their names, you must be logged in to a different administrator account. If your Mac has only one administrator account, create a new administrator account in Users & Groups settings.

Rename the home folder

  1. Log out of the account that you're renaming: Choose Apple menu  > Log Out.
  2. Log in to another administrator account.
  3. Open the Users folder on the startup disk. It contains the home folder for each user. To get there, you can choose Go > Go to Folder from the menu bar in the Finder. Then enter /Users.
  4. Rename your home folder. Don't use any spaces in the new name. When prompted, enter the name and password of the administrator account that you used to log in.
    If you're using file sharing to share the home folder, you must first stop sharing the folder. 

 


Then rename the account

While still logged out of the account that you're renaming, follow these additional steps, depending on which version of macOS you're using.

macOS Ventura or later

  1. Choose Apple menu  > System Settings.
  2. Click Users & Groups in the sidebar.
  3. Press and hold the Control key on your keyboard, then click the name of the account that you're renaming. Choose Advanced Options from the menu that appears.
    Users & Groups pane, showing the menu with Advanced Options
  4. When prompted, enter the administrator name and password that you used to log in.
  5. Update the "User name" field to match the new name of the home folder. Optionally change the "Full name" field as well. The full name does not have to match, and you can use either name when logging in or making changes that require your account name and password.
    Users & Groups pane, showing the Advanced Options window
  6. The user name also appears as part of the path shown in the "Home directory" field. Change that name to match the new name of the home folder, but don't remove /Users/ from the path.
  7. Click OK, then restart your Mac and log in to the renamed account.

Earlier versions of macOS

  1. Choose Apple menu  > System Preferences.
  2. Click Users & Groups.
  3. Click the lock , then enter the administrator name and password that you used to log in. 
  4. Press and hold the Control key on your keyboard, then click the name of the account that you're renaming. Choose Advanced Options from the menu that appears.
  5. Update the "Account name" field to match the new name of the home folder. Optionally change the "Full name" field as well. The full name does not have to match, and you can use either name when logging in or making changes that require your account name and password.
  6. The user name also appears as part of the path shown in the "Home directory" field. Change that name to match the new name of the home folder, but don't remove /Users/ from the path.
  7. Click OK, then restart your Mac and log in to the renamed account.
    Users & Groups pane, showing the Advanced Options window
Published Date: