What you need to know before changing your Mac username

Your Mac username is the short name that appears in the login window and in your home folder path. Changing it is possible, but the process has a real limitation: you cannot change the username through the normal System Settings. Instead, you use the Directory Utility application, which is built into macOS but hidden from the main menu. The change takes effect the next time you log in.

Before you start, understand what will and will not change. Your actual account name on the system changes. Your home folder path changes. But files you have created will not automatically move to a new location — you will need to handle that separately if it matters to you. Also, if you use iCloud or other services tied to your account, those connections remain intact because they are linked to your Apple ID, not your username.

You will need administrator access to make this change. If you are not sure whether you have it, try opening System Settings and looking for a lock icon in the bottom left corner of any preference pane. If you can unlock it with your password, you have administrator access.

Key Takeaways

  • Your Mac username is changed through Directory Utility, not System Settings, and the change takes effect after you log out and back in.
  • You must have administrator access to your account, and you should back up your Mac before making any system changes.
  • Your home folder path will change, but your files stay where they are unless you move them manually.
  • If you only want to change the display name that appears in menus and login windows, System Settings offers a simpler option that does not require Directory Utility.

The difference between display name and username

macOS actually lets you change two different things, and most people want to change only one. Your display name is what shows up in the top-right corner of your screen, in Messages, and in other applications. Your username is the short code that appears at the login window and in your home folder path (like /Users/yourname).

If you only want to change what people see when you use your Mac — the friendly name in apps — you can do that in System Settings without touching Directory Utility. Open System Settings, go to General, then About, and click Edit next to your name. Type the new display name and click Done. This change takes effect immediately and does not affect your login or file paths.

If you need to change the actual username (the short code), you must use Directory Utility. This is the more involved process and the one described in the steps below. Most people do not need to do this. You only need to change your username if you are setting up a new account structure, troubleshooting a system issue, or have a specific reason to alter your home folder path.

How to change your username using Directory Utility

Open Finder and go to Applications. Open the Utilities folder. Double-click Directory Utility to launch it. You may see a prompt asking for your password — enter it and click OK. At the top of the Directory Utility window, you will see a lock icon. Click it and enter your administrator password again. The lock will unlock, and the fields in the window will become editable.

In the list on the left side of the window, find your user account. It will be listed under Local. Click on it to select it. In the right panel, you will see several fields. Look for the field labeled "Name" — this is your username. Click in that field, delete the current name, and type your new username. Use lowercase letters and no spaces. Then look for the field labeled "Home Directory" and update the path to match your new username. For example, if your new username is "alex", the home directory should be /Users/alex.

After you have made both changes, click the lock icon again to lock the changes. Close Directory Utility. You will need to log out of your Mac and log back in for the change to take effect. When you log in again, use your new username.

What happens to your files and folders after the change

Your existing files do not automatically move when you change your username. They stay in the old home folder location. This means you will have two home folders on your Mac after the change: the old one (with your old username in the path) and the new one (with your new username in the path). The new one will be mostly empty.

If you want to consolidate your files, you have two options. The first is to manually move files from the old home folder to the new one using Finder. Open Finder, navigate to /Users, and you will see both folders. You can drag files from the old folder into the new one. The second option is to delete the old home folder once you are certain you have moved everything you need. Right-click the old folder, select Move to Bin, and empty the Bin. Do this only after you have verified that all important files are in the new location.

Before you delete anything, make sure you have a backup. Use Time Machine or another backup tool to create a full backup of your Mac before you change your username. If something goes wrong, you can restore from the backup.

Troubleshooting if Directory Utility will not open or unlock

If Directory Utility will not open, you may not have administrator access. Check System Settings to confirm. Go to System Settings, click General, then Users & Groups (or Accounts, depending on your macOS version). Look for a lock icon in the bottom left. If it is locked and you cannot unlock it with your password, you do not have administrator access. You will need to ask the account holder or an administrator to make the change for you.

If Directory Utility opens but will not unlock, try restarting your Mac and trying again. Sometimes the system needs a fresh start to recognize administrator permissions. If it still will not unlock, restart your Mac in Safe Mode. Hold Shift while your Mac starts up. Once you are in Safe Mode, try opening Directory Utility again. Safe Mode sometimes allows changes that the normal system will not.

If you see an error message saying the directory is read-only, your system may have a permissions issue. Restart your Mac and try again. If the problem persists, you may need to use Recovery Mode. Restart your Mac and hold Command + R while it starts. Once in Recovery Mode, open Utilities from the menu bar and select Terminal. Type resetpassword and press Enter. This opens the password reset utility, which also lets you repair directory permissions.

Why you might want to change your username

Most people never need to change their username. It is a behind-the-scenes identifier that does not affect how your Mac works day-to-day. However, there are situations where it makes sense. If you inherited a Mac from someone else and want to set it up as your own, changing the username can help you feel like it is truly yours. If you are setting up a multi-user Mac and want consistent naming across accounts, changing usernames can help.

Some people change their username for privacy reasons, though this is a minor step — your username is visible in file paths and terminal windows, but not in most everyday applications. If you are troubleshooting a system issue, a technician might ask you to change your username as part of the fix, though this is rare.

If you are simply unhappy with the display name that shows up in menus and messages, remember that you do not need to change your username at all. Changing your display name in System Settings is much simpler and accomplishes what most people actually want.

Frequently Asked Questions

Will changing my username affect my passwords or login?

No. Your password stays the same. You will log in with your new username and your existing password. Your Apple ID and iCloud account remain connected because they are tied to your email address, not your username.

Can I change my username without restarting my Mac?

The change is made in Directory Utility immediately, but it does not take effect until you log out and log back in. You do not need to restart your Mac — logging out and logging back in is enough.

What if I change my username and then want to change it back?

You can change it back the same way you changed it the first time. Open Directory Utility, unlock it with your administrator password, select your account, change the username field back to the original name, update the home directory path, and log out and back in. Just make sure you move any files you created in the new home folder back to the old location first.

Do I need to tell any programs about my new username?

Most applications do not care about your username. They are tied to your Apple ID or your user account itself, not the username string. However, if you use terminal commands or scripts that reference your username in file paths, you will need to update those paths manually.

What if my Mac is encrypted with FileVault?

You can still change your username, but you should have your FileVault recovery key written down before you start. If something goes wrong during the change, you may need it to recover your files. The process is the same — use Directory Utility to change the username, then log out and back in.