The two ways to change your Mac username
You can change your Mac username through System Settings, but the method depends on whether you want to change your account name, your display name, or both. Your account name is what appears in the terminal and file paths — it cannot contain spaces and is harder to change. Your display name is what shows on the login screen and in System Preferences — it can include spaces and changes when ready. Most people want to change the display name, which takes one minute. Changing the account name requires more steps and a restart.
If you only want to change how your name appears on the login screen and in menus, change your display name. If you want to change the folder name in /Users/ and your terminal username, you need to change your account name instead. You cannot do both at the same time — you must change one, then the other.
Key Takeaways
- Changing your display name (what shows on the login screen) takes one minute and requires only System Settings.
- Changing your account name (your /Users/ folder and terminal name) requires creating a new administrator account first, then migrating your files.
- You cannot change your account name while logged into that account — you must log in as a different administrator.
- If you only want a different name on the login screen, change the display name and skip the account name steps entirely.
How to change your display name in one minute
Open System Settings and click Users & Groups (or System Settings > General > Users & Groups on newer Macs). Click the lock icon in the bottom left and enter your password to unlock the settings. Right-click your account name in the left panel and select Advanced Options. In the "Full Name" field, type the new name you want to appear on the login screen and in menus, then click OK. The change takes effect when ready — you do not need to restart.
This is the display name only. Your account folder in /Users/ and your terminal username stay the same. If someone opens Finder and navigates to /Users/, they will still see your old folder name. If you use the terminal, your username prompt will not change. For most people, this is all you need to do.
How to change your account name (the longer method)
Changing your account name requires you to create a temporary administrator account, log out of your main account, then use that temporary account to rename your main account's folder and settings. Start by creating a new administrator account: go to System Settings > General > Users & Groups, click the lock icon, then click the + button to add a new account. Choose Administrator as the account type, give it a temporary name like "Temp Admin", and set a password you will remember.
Log out of your current account (Apple menu > Log Out). Log in as the temporary administrator account you just created. Open System Settings > General > Users & Groups again, click the lock icon, then right-click your original account name in the left panel and select Advanced Options. Change the "Account name" field to your new username (no spaces, lowercase letters and numbers only). Click OK. Your /Users/ folder will not rename automatically — you must do that manually.
Open Finder and navigate to /Users/. You will see a folder with your old account name. Right-click it, select Rename, and type your new account name. Press Enter. Go back to System Settings > General > Users & Groups, right-click your account again, select Advanced Options, and verify the "Home directory" path now points to /Users/[your new name]. If it still shows the old path, click the folder icon next to it and navigate to the renamed folder manually.
Log out of the temporary administrator account and log back into your main account using your new account name. You may see a dialog asking about your keychain — click "Update Keychain Password" and enter your login password. Once you are logged in, you can delete the temporary administrator account: log back into the temporary account, go to System Settings > General > Users & Groups, click the lock icon, right-click your original account, and click the − button to remove it. Then log back into your main account.
What to check after changing your account name
After you change your account name, some applications and settings may still reference the old name. Open Terminal (Applications > Utilities > Terminal) and type whoami to confirm your new account name appears. Check that your home folder path is correct by typing cd ~ and then pwd — it should show /Users/[your new name].
If you use cloud services like iCloud, Google Drive, or Dropbox, those applications may need to re-authenticate. Open each one and sign in again if prompted. Check your email client — some email programs store settings in your user folder and may need to be reconfigured. If you have scheduled tasks or scripts that reference your old username, you will need to update those paths manually.
Why you might want to keep your account name and change only your display name
Changing your account name is time-consuming and can break things if you have many applications or scripts that reference your old username. Most people never see their account name — it only appears in the terminal, in file paths, and in some process settings. Your display name is what matters for everyday use: it shows on the login screen, in System Preferences, and in most applications.
If you are changing your name for personal reasons, changing your display name alone is usually enough. You avoid the risk of breaking file paths or process settings, and the change is when ready. Only change your account name if you specifically need your /Users/ folder name or terminal username to be different.
Troubleshooting common problems
If you see an error saying you cannot change your account name, make sure you are logged into a different administrator account — you cannot rename the account you are currently using. If the home directory path does not update after you rename the /Users/ folder, go back to System Settings > General > Users & Groups, right-click your account, select Advanced Options, click the folder icon next to "Home directory", and manually navigate to your renamed folder.
If applications stop working after you change your account name, they may be looking for files in your old /Users/ path. Check the process's preferences or settings to see if you can update the file path. Some applications store settings in hidden folders inside your home directory — if an process is not finding your files, try opening it and re-entering your preferences. If you use Time Machine backups, your backups will continue to work, but you may need to restore files manually if an process cannot find them in the new location.
Frequently Asked Questions
Will changing my username affect my passwords or login?
Changing your display name will not affect anything — you log in with your password, not your name. Changing your account name also will not affect your login password. You will still use the same password to log in; only the username part of your file paths and terminal prompt changes.
Can I change my account name without creating a temporary administrator account?
No. macOS does not allow you to rename the account you are currently logged into. You must create a temporary administrator account, log into it, then rename your main account from there. This is a safety feature to prevent accidental damage to your account settings.
What happens to my files if I change my account name?
Your files stay in your home directory. When you rename the /Users/ folder, all your files move with it. Applications may temporarily lose track of files if they have hardcoded the old path, but your files themselves are not deleted or moved anywhere else.
Do I need to change my iCloud or Apple ID when I change my username?
No. Your Apple ID and iCloud account are separate from your Mac username. Changing your Mac username does not affect your Apple ID login or iCloud sync. You may need to sign back into iCloud or other cloud services if they lose connection during the rename process, but your account information stays the same.
Can I change my account name back if I change my mind?
Yes. Follow the same process: create a temporary administrator account, log into it, then change your account name back to the original name and rename the /Users/ folder. You can change your account name as many times as you want, though each change requires a restart and a temporary account.