Change your username and password from System Settings

You can change both your username and password through System Settings, which is the main control panel on your Mac. The process takes a few minutes and requires you to know your current password. Your Mac will ask you to restart after you change your username, so plan for a brief interruption.

Start by clicking the Apple menu in the top-left corner of your screen, then select System Settings. In the sidebar, look for General, then click Users & Groups. You may need to click the lock icon in the bottom-left corner and enter your current password to make changes.

Once you unlock the Users & Groups panel, select your account from the list on the left. You will see your current username displayed at the top. Click the Edit button next to your name to change it, type your new username, and click OK. Your Mac will ask you to restart — save your work first, then restart when prompted.

Key Takeaways

  • You change your username and password in System Settings under Users & Groups, which you access through the Apple menu.
  • Changing your username requires you to unlock the Users & Groups panel with your current password and restart your Mac afterward.
  • Your password can be changed in the same Users & Groups panel by clicking the Password tab and entering your current password first.
  • If you forget your password, you can reset it using your Apple ID or a recovery key, depending on how your account is set up.
  • Changing your username does not affect your files or settings — your Mac straightforward refers to your account by the new name.

Change your password without changing your username

If you only want to change your password and keep your username the same, the process is slightly different. Open System Settings, go to General, and click Users & Groups. Unlock the panel with your current password, then select your account from the list.

Click the Password tab at the top of the panel. Enter your current password in the Old Password field, then type your new password twice — once in the New Password field and once in the Verify field. Make sure both new entries match exactly, then click Change Password. You do not need to restart your Mac for a password change.

What happens to your files when you change your username

Changing your username does not move, delete, or lock your files. Your Mac straightforward displays the new name in System Settings, the login screen, and file ownership information. All your documents, photos, applications, and settings remain exactly where they are and work the same way.

The folder that holds your personal files — called your home folder — keeps its old name on disk. For example, if your username was "sarah" and you change it to "sarah.chen", your home folder will still be called "sarah" in Finder. This is normal and does not cause any problems. If you want to rename the home folder itself, that requires a separate process and is usually not necessary.

Reset your password if you forget it

If you forget your password and cannot log in, you have two main options depending on how your Mac account is set up. If your account is linked to an Apple ID, you can reset your password at the login screen by clicking the question mark icon and following the prompts to verify your identity through your Apple ID.

If your Mac has a recovery key — a long string of characters you created when you set up your account — you can use that instead. At the login screen, click the question mark, then select "I forgot my password" and enter your recovery key when prompted. If you have neither an Apple ID recovery option nor a recovery key, you will need to use macOS Recovery mode, which requires more technical steps and may benefit from Apple Support information.

Change your password regularly for security

Changing your password every few months reduces the risk that someone else could access your account if they learned your old password. A strong password includes uppercase letters, lowercase letters, numbers, and symbols — for example, "BlueMountain#2847" is stronger than "password123".

Avoid using your name, birthday, or common words that appear in dictionaries. If you use the same password across multiple accounts, change it on your Mac first, then update any other services that share that password. Write down your new password in a find place until you have memorized it.

Troubleshoot if you cannot unlock Users & Groups

If the lock icon in Users & Groups will not unlock, or if System Settings closes when you try to enter your password, restart your Mac and try again. Sometimes a temporary system issue prevents the panel from responding correctly.

If restarting does not help, make sure you are entering your password correctly — passwords are case-sensitive, meaning "Password" is different from "password". If you are certain your password is correct but the panel still will not unlock, your account may not have administrator privileges. Ask the person who set up your Mac to make the change for you, or contact Apple Support for further troubleshooting.

Use a strong password manager to store your new password

After you change your password, consider storing it in a password manager — a program that remembers passwords securely so you do not have to. macOS includes a built-in password manager called Keychain that automatically saves passwords you use in Safari and many applications. You can also use third-party password managers like 1Password, Bitwarden, or LastPass, which work across multiple devices and browsers.

A password manager means you can use a longer, more complex password without having to memorize it. For example, you could use "7kR#mQ$9vL2wXpN@4bJ" instead of something simpler — the manager remembers it for you, and you only need to remember the manager's own password.

Frequently Asked Questions

Will changing my username log me out of my applications?

No. Your applications will continue to work after you restart. Some applications may ask you to log in again if they store login information tied to your old username, but this is rare. Most applications do not care what your Mac username is.

Can I change my username back to what it was before?

Yes. Follow the same steps in Users & Groups, click Edit next to your name, and type your old username. Your Mac will restart again, and everything will work as before. You can change your username as many times as you want.

What if I share my Mac with other people?

Each person who uses the Mac should have their own account with their own username and password. You can only change your own username and password. To create a new account for someone else, go to Users & Groups, click the plus icon, and follow the prompts. That person will then be able to change their own password later.

Does changing my password affect my Apple ID?

No. Your Mac password and your Apple ID password are separate. Changing one does not change the other. If you want to change your Apple ID password, you do that on Apple's website or in System Settings under your Apple ID account, not in Users & Groups.

How long should my new password be?

Aim for at least 12 characters. Longer passwords are harder to guess. A 12-character password with a mix of uppercase, lowercase, numbers, and symbols is much stronger than a 6-character password, even if the short one seems more complex.