logo

Let’s Work Together

Partner with you to deliver responsive and cost-effective IT & Support solutions
Reponsive
Cost-Effective
Partner with you
Focus
Attitude to Serve
Professional
These are the reasons why AionSolution is your vendor when you are seeking someone to support your IT in your office.
info@aionsolution.com
+852 2636 6177

How to change the name of your macOS user account and home folder

Your user account name and home folder name were created when you set up your macOS user account. You can rename them.

Each user account on your Mac has a full name and a short name (account name). You can view these names in the Users & Groups pane of System Preferences, and you can use either the full name or short name to log in to your Mac.

Change the full name of a user account

A user’s full name can be changed by that user or an administrator account. The full name doesn’t need to be the same as the account name or home folder name.

macOS Sierra, El Capitan, Yosemite

  1. Choose Apple menu () > System Preferences, then click Users & Groups.
  2. Click lock, then enter an administrator name and password.
  3. From the list of users, Control-click or right-click the user that you want to rename. Choose Advanced Options from the shortcut menu.
  4. Change the name in the “Full name” field, then click OK.

OS X Mavericks or earlier

  1. Choose Apple menu > System Preferences, then click Users & Groups (or Accounts).
  2. Select a user from the list.
  3. Change the name in the “Full name” field.

Change the account name and home folder name

Because the account name (short name) is used to create a user’s home folder, the name of the account name and the name of the home folder must match. Before following these steps, you should back up your important data.

macOS Sierra, El Capitan, Yosemite, Mavericks, Mountain Lion, Lion

  1. Log out of the account you’re renaming, then log in to an administrator account.
    The administrator account needs to be a different account than the one you’re renaming. If necessary, create another administrator account, then remove it when you’re done.
  2. Go to the Users folder on the startup drive. The Users folder contains the home folder of the account you’re renaming. Rename that account’s home folder and make note of both the old name and new name. When renaming the folder, you’re prompted to enter the administrator name and password that you used to log in.
  3. Choose Apple menu > System Preferences, then click Users & Groups.
  4. Click lock , then enter the administrator name and password that you used to log in.
  5. From the list of users, Control-click or right-click the user that you want to rename. Choose Advanced Options from the shortcut menu.
  6. Change the “Account name” field to match the new name that you gave the home folder in the Users folder.
    When modifying the account name (short name) or home folder name, it should not contain any spaces. If the current account name already contains a space, you won’t be able to edit this field until the space has been removed. Click immediately after the space, or use the left arrow key to move the text insertion point immediately after the space, then press the Delete key to remove the space.
  7. Change the “Home directory” field to match the new name that you gave the home folder in the Users folder.
  8. Click OK, then quit System Preferences.
  9. Restart your Mac.
  10. Log in to the renamed account, then verify that your old files and folders are visible and the account is working as expected.

OS X Snow Leopard

  1. Log out of the account you’re renaming, then log in to an administrator account.
    The administrator account needs to be a different account than the one you’re renaming. If necessary, create another administrator account, then remove it when you’re done.
  2. Make note of the current name of the account you’re renaming. It should match the name of that account’s home folder, which is in Users folder of the startup drive.
  3. Open the Terminal app, which is in the Utilities folder of the Applications folder.
  4. Enter the following command in Terminal:sudo mv /Users/oldname /Users/newnameReplace oldname with the original name of the user account, and replace newname with the name you want to change it to. For example, if the old user had the short name “johnappleseed,” and the new user will have the short name “john,” you would enter:sudo mv /Users/johnappleseed /Users/john
  5. Enter the current account’s administrator password when prompted, then press Return.
  6. Choose Apple menu > System Preferences, then click Users & Groups, then click Accounts.
  7. Click lock, then enter the administrator name and password that you used to log in.
  8. From the list of accounts, Control-click the account that you want to rename, then choose Advanced Options from the shortcut menu.
  9. Change the “Account name” field to match the new name. In the example above, you’d change it from “johnappleseed” to “john”.
  10. Change the “Home directory” field to match the new name. In the example above, you’d change it from “/Users/johnappleseed” to “/Users/john”.
  11. Click OK, then quit System Preferences.
  12. Restart your Mac.
  13. Log in to the renamed account, then verify that your old files and folders are visible and the account is working as expected.

Source: Apple Support