How to Change a User Home Folder Name in Mac OS

Dec 2, 2016 - 11 Comments

Change user home folder name in Mac

Some advanced Mac users may wish to change a users Home directory folder name. This is a fairly unusual scenario that is typically only necessary for very specific reasons, whether a new user account has been added to a Mac, accounts are being merged, a user is changing their name and adding a new user account is not possible for some reason, troubleshooting unusual conflicts with directory names, or for other specific reasons relevant only to advanced Mac users.


Do not attempt to change a user home folder unless you have a compelling reason to do so and you know exactly what you’re doing and why you’re doing it. This is not an action to be taken lightly due to the potential for a myriad of things to go very wrong. This is relevant to advanced Mac users only.

Warning: Back up a Mac with Time Machine or your backup method of choice before doing this. If something goes wrong, the user account could be inaccessible including any and all files, and there are other potential issues that could arise as well. Do not skip backing up the Mac and user data before performing any of these actions.

How to Change User Home Directory Names in Mac OS

The method we’re going to show here works to change a users home folder name in Mac OS and Mac OS X, including versions Sierra, El Capitan, Yosemite, Mavericks, and Mountain Lion.

  1. Back up the Mac before doing anything else, do not skip this
  2. Log in to a different Admin user account, it must be different from the account folder being changed
  3. From the Finder of Mac OS, go to /Users/ directory and rename the folder of the user account you wish to change as you would any other file/folder, authenticating when requested
  4. Change a user home folder name on Mac

  5. From the  Apple menu choose “System Preferences” and then choose “Users & Groups”
  6. Click the lock icon and authenticate to gain access to making changes to Users
  7. Right-click on the user account you wish to change the Home folder for and choose “Advanced Options”
  8. Choose Advanced Options to change user home directory on Mac

  9. Look for the “Home Directory” option and edit the path to match the newly renamed folder in step 3, be certain the directory name and the proper directory path match otherwise the user account will not work at all
  10. Change user home directory folder path on Mac

  11. Click “OK” and then restart the Mac for changes to take effect
  12. Log into the user account whose user home folder was changed and insure that everything is accessible and working as expected, including customizations, preferences, settings, apps, file access, data access, photos, media, apps, permissions, and any other relevant item

It is critical to insure that everything in the changed user directory is accessible and works as intended, do not skip verifying data, files, and preferences, as things can go awry and lead to issues down the road.

Note there can be some unusual side effects with doing this, including having the user account lose various customizations and settings, or sometimes even an inability to access certain files or data. For example, you may lose all Dock and Finder settings on log out persistently, until you either fix the user library folder permissions with chown or your method of choice. Additionally, users may lose access to some files or folders if they are referencing a directory that no longer exists due to the name change. This is just a small sample of the many things that can go sideways, which further should emphasize why this is truly only relevant to advanced Mac users and not a casual undertaking.

Note that we’re changing only the user folder name in this example, and not moving the location of the user home directory, which is sometimes undertaken to relocate a users files to a different hard drive or volume. The task is similar, however.

.

Related articles:

Posted by: Paul Horowitz in Mac OS, Tips & Tricks

11 Comments

» Comments RSS Feed

  1. Oscar says:

    so complicated!!!! Windows is user friendly. Where can U get a manual for Mac that explains thing in plain English and easy to follow?

  2. laapsaap says:

    Just ensure you close all unnecessary apps.

    I just did this, opened the advanced settings where you can change homefolder. Opened a terminal.

    cd /Users
    mv oldfolder newfolder; ln -s newfolder olderfolder

    changed the home folder in advanced settings and rebooted. Flawless.

  3. Dan says:

    Another method:
    Log in as admin.
    In Users and Groups, click the “-” to remove the user. In the dialog, choose to leave the home folder in place.
    Go to the Finder and rename the Home folder.
    Create a new user with the same name. The OS will ask if you want to use the existing folder as Home, say yes.
    Test permissions throughly.

  4. Kurt says:

    It worked for me. All the way.

    Except that I later found out a) dropbox was confused and asked if I wanted to restore the 30.000 files I had deleted and b) after 4 weeks I discovered all my attachments in Bookends had disappeared. The entries were still there, but the attachment-folder had been replaced with a new, empty one … I lost about 250 pdf:s and the like.

    So – don’t unless you really, really, really have to.

  5. Liam says:

    Here’s a better way, in the terminal.app type:

    sudo ditto -v /Users/”Old_Name”/ /Users/”New_Name”

    Just replace “Old_Name” with “New_Name” & be sure to not include the quote marks.

    You can also move your home directory to an external disk location if needed by changing the ‘/Users/”New_Name”‘ part to include the new path :

    sudo ditto -v /Users/”Old_Name”/ /Volumes/”External_Drive_Name”/Users/”New_Name”

    Now change the home directory pointer as shown in this article – this method should maintain all prefs and permissions although some apps may need their Libraries pointed to the new location if you’ve moved to another disk.

  6. Carlos says:

    Be advised, DO NOT CHANGE your home folder name if you have softwares that leave their .application configuration files in the home directory, including emacs, MATLAB, etc. They are very likely to be broken after the change!

  7. Tomson says:

    There are other ways to do this… I’ve used symlinks for years to point the home directory to one on another disk – keeping user directories off root disks is unix 101 and the Mac should not do it.

    BTW – can the author please learn the difference between “insure” and “ensure” – sub-editors too.

  8. @gpcroft says:

    I tried this very thing today, since when setting up a new Mac on Sierra, the initial user account creation wouldn’t let me use upper case for my initials. It seems weird having my home folder initials in lower case!

    I followed the same process (using Apple’s own kb article) but couldn’t get past Step 3 as described above. No matter what I did with folder permissions, I could never rename the user folder. It was always greyed out in Get Info, pressing Return did nothing and “Rename” never appeared on right clicking. (And yes, I had logged out of the account I wanted to change, and was logged in as an Admin on another account).

    Any suggestions?

    • giga bites says:

      Similar scenario here, I had to do this after migrating to a new Mac with Sierra where Migration Assistant doubled the users for some reason. Anyway, you have to be logged into a new and different admin account, if it’s not letting you change the name it’s probably in the same account or it does not have admin access.

      You can also do it at the command line from an admin account with sudo mv /Users/OldName /Users/NewName and then follow it up within the control panel so that it knows where to look in the proper place.

    • Mike says:

      Your home folder name will always be in lowercase… but the way your name is Displayed will be with Uppercase. Don’t try and change it, it will end in tears.

Leave a Reply

 

Shop on Amazon.com and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site