Change your username and password from System Settings
The fastest way to change both your username and password is through System Settings, where Apple groups these controls together. Open System Settings (the gear icon in your dock or Applications folder), then click General in the left sidebar. Look for Users & Groups — on newer Macs running Sonoma or later, this appears as Login Items and Extensions in the General menu, but the actual user controls live under System Settings > General > About > System Settings again > Users & Groups. On older Macs, Users & Groups is its own System Preferences pane.
Once you find Users & Groups, click the lock icon in the bottom left corner and enter your current password to unlock the settings. Select your account name from the list on the left. You will see two fields: one for your full name (the display name) and one for your account name (the short name used for your home folder and login). Change whichever you need, then click outside the field to save. For your password, click the Change Password button, enter your current password once, then type your new password twice to confirm it.
Key Takeaways
- Your account name (short name) and display name are separate — changing one does not change the other, and only the account name affects your home folder path.
- You must unlock Users & Groups with your current password before you can make any changes to your account.
- If you change your account name, your home folder path stays the same, but new files and some applications may reference the new name.
- If you forget your password after changing it, you can reset it using your Apple ID or a recovery key from System Settings > General > Login Options.
- Changing your password does not affect your Apple ID password — they are separate credentials.
Understand the difference between account name and display name
Your Mac has two names that often confuse people because they look similar but do different things. Your display name (also called full name) is what appears in the top-right corner of your screen, in Mail, and in shared folders. Your account name (also called short name or username) is what you type when you log in, and it is the name of your home folder at /Users/accountname.
When you change your display name, nothing else breaks — it is purely cosmetic. When you change your account name, your home folder path does not change, but any new shortcuts or file paths you create will reference the new name. Some older applications may still look for the old account name and fail to find it. If you are not sure whether to change the account name, change only the display name instead.
Reset your password if you forget it
If you change your password and then forget it, you have two ways back in without erasing your drive. The first is to use your Apple ID: restart your Mac, enter your Apple ID and password at the login screen, and macOS will let you set a new Mac password. The second is to use a recovery key, which you can set up ahead of time in System Settings > General > Login Options > Password Options. Write down your recovery key and store it somewhere safe — it is a long string of characters that works like a backup password.
If you do not have your Apple ID password and you did not save a recovery key, your only option is to erase your Mac and reinstall macOS, which will wipe all your files. This is why setting up a recovery key before you need it is worth the five minutes it takes.
Change your password from the login screen
You can also change your password without opening System Settings. At the login screen, enter your username and current password as usual. Once you are logged in, hold down the Option key and click the battery icon (or clock) in the top-right corner of the menu bar. Select Lock Screen. When the lock screen appears, click the password field and press Control + U. A dialog will open asking for your current password and your new password. This method is faster if you are already logged in and do not want to dig through System Settings.
This shortcut does not work on all Macs — if the Control + U combination does nothing, use the System Settings method instead.
What happens to your files and folders when you change your account name
When you change your account name in Users & Groups, macOS does not rename your home folder automatically. Your folder stays at /Users/oldname even though your account name is now newname. This is intentional — it prevents applications from breaking because they still know where to find your files. However, any new files you create, any new shortcuts you make, or any new applications you install may reference your new account name, which can create confusion.
If you want your home folder path to match your new account name, you have to rename it manually. Open Finder, click Go in the menu bar, hold Option, and select Library. Navigate to /Users, right-click your old folder name, and select Rename. Type the new name. You may need to restart your Mac for all applications to recognize the change. If you are not comfortable with this step, leave the folder name as is — it will not cause problems.
Keep your Apple ID password separate from your Mac password
Your Mac login password and your Apple ID password are two different things, and changing one does not change the other. Your Mac password is what you type to log into your computer. Your Apple ID password is what you use to sign into the App Store, iCloud, Apple Music, and other Apple services. You can change your Mac password without touching your Apple ID, and vice versa.
If you want to change your Apple ID password, go to appleid.apple.com in a web browser, sign in, click Security, and select Change Password. After you change your Apple ID password, you will need to sign out and back in on your Mac to update the stored credentials. Go to System Settings > General > Users & Groups, select your account, and click Sign Out next to your Apple ID. Then sign back in with your new Apple ID password.
Troubleshoot if you cannot unlock Users & Groups
If you click the lock icon in Users & Groups and your password does not work, first make sure you are typing your current Mac login password, not your Apple ID password. If you are certain it is correct and it still does not work, restart your Mac and try again — sometimes the system gets stuck.
If the lock icon is already unlocked (no padlock symbol), you can make changes without entering a password. This usually means you are logged in as an administrator account. If you are on a shared Mac and you cannot unlock Users & Groups at all, you may not have administrator rights. Ask whoever set up the Mac to unlock it for you, or ask them to make the changes you need.
Frequently Asked Questions
Can I change my username without changing my password?
Yes. In Users & Groups, you can change your account name or display name without touching the password field. Click outside the name field to save it, then leave the password section alone. Your password stays the same until you click Change Password.
What if I change my account name and applications stop working?
Some older applications store file paths using your old account name and do not update when you change it. Restarting your Mac often fixes this. If an process still cannot find files, you may need to reinstall it or contact the developer. This is rare on modern Macs, but it is why changing only your display name is safer if you are unsure.
Do I need to change my password when I change my username?
No. Changing your username and changing your password are independent actions. You can do one, the other, or both. Many people change their display name for cosmetic reasons without touching their password at all.
Will changing my Mac password sign me out of iCloud?
No. Your Mac password and your Apple ID password are separate. Changing your Mac password does not affect iCloud, the App Store, or any Apple services. You will stay signed in to iCloud unless you manually sign out.
Can I change my account name back after I change it?
Yes. Go back to Users & Groups, unlock it with your password, and change the account name to whatever you want. If you renamed your home folder to match the old name, you will need to rename it again to match the new account name, or leave it mismatched (which is fine).