The fastest way: System Settings on your Mac

Open System Settings, go to General, then select Users & Groups (or Users in newer macOS versions). Click the lock icon in the bottom left to unlock the settings, then right-click your account name in the list on the left and choose "Rename". Type your new username and click "Rename" again. Your Mac will ask you to restart — do that, and the change takes effect when ready.

This method works on macOS Ventura, Sonoma, and earlier versions. The exact menu names shift slightly between versions, but the path is always System Settings > General > Users & Groups, then unlock and rename.

One important detail: changing your username in System Settings changes the display name (what appears on the login screen and in menus), but not your home folder path. If you need the folder name to change too — for example, if you share files over a network — you will need the second method below.

Key Takeaways

  • The System Settings method changes your display name when ready and is the right choice for most people who just want a different name on the login screen.
  • Your home folder path (like /Users/oldname) stays the same even after you rename your account, which usually does not matter unless you access it over a network.
  • Changing the home folder path requires booting into Recovery Mode and using Terminal, and you must have another admin account to do it.
  • Back up your Mac before attempting any username change, especially if you plan to modify the home folder path.

When you need to change the home folder path too

If your Mac is on a network and other computers access your files by path (for example, smb://computername/oldname), or if you straightforward want the folder name to match your new username, you need to change the home folder path itself. This is more involved and requires you to have a second admin account on your Mac.

First, create a new admin account if you do not have one. Go to System Settings > General > Users & Groups, click the plus sign, and set up a temporary admin account. Log out of your current account and log into the new one.

Now open Terminal (in Applications > Utilities) and type: sudo mv /Users/oldname /Users/newname, replacing oldname and newname with the actual names. Terminal will ask for your password. Once that completes, go back to System Settings > General > Users & Groups, unlock the settings, right-click your original account, and choose "Advanced Options". Change the home directory path from /Users/oldname to /Users/newname. Log out, log back into your renamed account, and verify that everything works — your Desktop, Documents, and other folders should all be there.

After you confirm the rename worked, delete the temporary admin account you created. Go to System Settings > General > Users & Groups, select the temporary account, click the minus sign, and choose "Delete the home folder".

What happens to your files and programs

Your files stay exactly where they are. Documents, photos, downloads, and everything in your home folder remain accessible after the rename. Programs continue to work because they do not depend on your username — they look for files by their full path, which includes the folder name, but changing the folder name updates that path automatically.

Some programs that store settings in your home folder may need to be restarted after the rename, but this is rare. If a program seems confused after you rename, quit it completely and reopen it. If you use iCloud or any cloud sync service, those will re-sync once you log back in — this can take a few minutes depending on how much data you have.

Fixing problems after a username change

If you renamed your account but some programs no longer open, or if you see permission errors, the most common cause is that a program was looking for a file in the old home folder path. Restart your Mac first — many issues resolve on their own after a restart.

If restarting does not fix it, check whether the program has a preferences file in your home folder. Open Finder, press Command-Shift-Period to show hidden files, navigate to Library > Preferences, and look for a folder or file with the program's name. If you find one with the old username in the path, you may need to move it to the correct location or reinstall the program. For most modern programs, reinstalling is the safest fix.

If you changed the home folder path and now cannot log in, restart your Mac and hold Command-R to enter Recovery Mode. Open Terminal from the Utilities menu and type: sudo mv /Users/newname /Users/oldname to reverse the change. Then restart normally and try the rename again, or contact Apple Support if the problem persists.

Why your username matters for network sharing

On a home network, other computers can access your Mac's shared folders using a path like smb://yourcomputer/username. If you change only the display name and not the home folder path, that network address stays the same — other computers will not notice anything changed. If you change the home folder path, the network address changes too, and other computers will need the new path to access your files.

If you are the only person on your network or you do not share files this way, changing the display name alone is simpler and safer. If you do share files and want the path to match your new name, plan the change for a time when nobody else is accessing your Mac, and let other users know the new network path before they try to connect.

Renaming your account on a work or school Mac

If your Mac is managed by your employer or school, you may not have permission to change your username. Check with your IT department first — they may have a process for this, or they may need to do it for you. Attempting to change a managed account without permission can lock you out or cause sync problems with company servers.

If you have a personal Mac that you use for work, you can change the username freely. If the Mac itself is owned by your organization, ask IT before making any changes to account names.

Frequently Asked Questions

Will changing my username affect my Apple ID or iCloud?

No. Your Apple ID and iCloud account are separate from your Mac username. Changing your Mac username does not change your Apple ID, and iCloud will continue to sync normally. You stay logged into iCloud with the same account you used before.

Can I change my username without restarting my Mac?

The System Settings method requires a restart, but it is a quick one. If you change the home folder path using Terminal, you do not need to restart, but you do need to log out and back in. There is no way to rename an account without at least logging out.

What if I forgot my password and cannot unlock System Settings?

You will need to reset your password first. Restart your Mac, hold Command-Q at the login screen to open password reset options, and follow the prompts. Once you can log in again, you can change your username through System Settings.

Can I have two usernames on the same Mac?

Yes. You can create multiple user accounts in System Settings > General > Users & Groups. Each account has its own username, home folder, and settings. You switch between them by logging out and logging in as a different user, or by clicking the user icon in the top right corner if fast user switching is enabled.

Does changing my username affect my email or passwords?

No. Your email address and passwords are stored separately from your Mac username. Changing your username does not affect any accounts you use on the web or in applications. You will still log into websites and services with the same email and password you used before.