Change your username through System Settings

The fastest way to change your MacBook Air username is through System Settings. Open System Settings from your Apple menu, then go to General > Users & Groups (or Accounts on newer macOS versions). Click the lock icon in the bottom left, enter your password, then right-click your account name and select "Advanced Options." Change the short name — this is what appears in the terminal and file paths — and the full name, which is what shows on the login screen. Click OK and restart your Mac.

This method works if you remember your current password and have administrator access. The short name cannot contain spaces or special characters, only letters, numbers, and hyphens. If you change the short name, your home folder name stays the same, but new files created after the change will reference the new username.

Key Takeaways

  • The short name (used in terminal and file paths) and full name (shown on login screen) are changed separately in System Settings under Users & Groups.
  • You must have administrator access and know your current password to make this change.
  • The short name cannot contain spaces or special characters, only letters, numbers, and hyphens.
  • Your home folder name does not automatically change when you update your username, but new files will use the new name.
  • Restarting your Mac after the change ensures all applications recognize the new username.

What happens to your home folder when you change your username

When you change your short name in System Settings, your home folder — located at /Users/oldusername — keeps its original name. This is intentional. If macOS renamed the folder automatically, it could break file paths that applications rely on, and you would lose access to files stored there.

If you want your home folder name to match your new username, you must rename it manually using Finder. Go to /Users in Finder, right-click your home folder, and select "Rename." Type the new name (matching your new short username) and press Enter. macOS will ask for your password to confirm. After the rename, restart your Mac so all applications recognize the new path.

Renaming your home folder to match your new username

Before you rename your home folder, make sure you are logged in as an administrator and that no applications are running. Close all open programs, including web browsers and email clients. Then open Finder, click the Go menu, and select "Computer." Navigate to Users, find your home folder, right-click it, and select "Rename."

Type your new username exactly as you entered it in System Settings (the short name, with no spaces). Press Enter. macOS will prompt you for your password. After you enter it, the folder will rename. Restart your Mac when ready so that all applications, including Finder, recognize the new path. If you skip the restart, some programs may not find your files.

If you see an error saying the folder is in use, restart your Mac in Safe Mode: shut down, then turn on while holding Shift. Try the rename again. Safe Mode prevents background processes from locking the folder.

Changing your username if you forgot your password

If you do not remember your password, you cannot change your username through System Settings. Instead, restart your Mac and hold Command + S to enter Single User Mode. At the prompt, type mount -uw / and press Enter. Then type rm /var/db/.AppleSetupDone and press Enter. Restart normally, and macOS will show the Setup Assistant, which lets you create a new administrator account.

Once you have created the new account, log in as that administrator, then go back to System Settings and change the original account's username. You can then delete the temporary account you created. This process is more involved than a normal username change, so write down each command carefully before you type it.

Using Terminal to change your username (advanced)

If System Settings does not work or you need to change the username for a different account, you can use Terminal. Open Terminal (found in Applications > Utilities), then type dscl . -change /Users/oldusername RecordName oldusername newusername and press Enter. Replace oldusername and newusername with the actual names. Enter your password when prompted.

This command changes the short name without opening System Settings. It is faster for experienced users but leaves no room for error — if you mistype the old username, the command will fail and you will need to try again. Do not use this method unless you are comfortable with Terminal. If you make a mistake, you may lock yourself out of your account.

What to do if applications stop working after you change your username

Some applications store file paths using your old username. After you change your username, these applications may not find their settings or data files. The most common culprits are email clients, photo libraries, and development tools.

If an process stops working, try opening it while holding Option and clicking its icon in the Dock. Select "Relaunch" or "Reset." This forces the process to rebuild its file paths using your new username. If that does not work, uninstall the process and reinstall it. During reinstall, it will create new settings folders with the correct username path.

For applications that store data in your home folder (like Photos or Mail), you may need to manually point them to the correct location. Open the process's preferences, look for a "Library" or "Data Location" setting, and navigate to your home folder. The process will then rebuild its index with the new path.

Frequently Asked Questions

Can I change my username without restarting my Mac?

You can change the name in System Settings without restarting, but applications will not recognize the change until you restart. Some programs may behave unpredictably if you do not restart, so it is safer to restart when ready after making the change.

Will changing my username affect my iCloud or Apple ID?

No. Your Apple ID and iCloud account are separate from your Mac username. Changing your Mac username does not change your Apple ID, and you will still log into iCloud with the same email address and password.

What if I see "User not found" after changing my username?

This usually means an process is still looking for your old username in the file system. Restart your Mac first. If the error persists, uninstall and reinstall the process. If the problem is system-wide, you may need to rename your home folder to match your new short username.

Can I change my username back to the old one?

Yes. Go back to System Settings > Users & Groups, click the lock, enter your password, right-click your account, select "Advanced Options," and change the short name back. If you renamed your home folder, you will need to rename it back as well.

Does changing my username delete any of my files?

No. Your files remain in your home folder regardless of what you name your account. Changing the username only changes how the system refers to the account and the folder path — the actual files are not touched.