Where your Mac stores administrator information

Your Mac administrator account is the one you use to log in when you start your computer, or the account that was set up during initial setup. The username appears in the top-right corner of your screen when you are logged in. The password is what you type to unlock your Mac or to approve system changes — it is not stored anywhere you can read it back.

If you have forgotten your administrator password, you cannot retrieve it by looking in files or settings. Instead, you will need to reset it using one of the methods below. If you remember your password but want to confirm your username, the fastest way is to open System Settings, click General, then About — your computer name appears there, though that is different from your user account name.

To see your actual administrator username, open the Apple menu in the top-left corner, select System Settings, then click General and then About. Look for "Computer Name" — but your login username is different. To find that, open System Settings, click General, then Users & Groups (or Accounts on older Macs), and your administrator account will be listed there with "Admin" next to it.

Key Takeaways

  • Your administrator username is the account name you use to log in to your Mac, visible in System Settings under Users & Groups or Accounts.
  • Your administrator password cannot be read from any file — if you forget it, you must reset it using your Apple ID or a recovery key.
  • On newer Macs with Apple silicon, you can reset your password through System Settings by clicking your user account and selecting "Change Password."
  • If you do not have access to your Apple ID or recovery key, you will need to use macOS Recovery mode and erase your Mac to regain access.
  • The "Computer Name" in System Settings is not the same as your username — your username is the short name you type at the login screen.

How to find your username in System Settings

Open the Apple menu in the top-left corner of your screen and select System Settings. On newer Macs (Monterey and later), click General on the left sidebar, then scroll down and click Users & Groups. On older Macs, the path is System Preferences, then Users & Groups or Accounts.

Your administrator account will be listed with "Admin" written next to it. The name shown there is your username — it is usually a single word or short phrase without spaces. This is the name you type at the login screen when you start your Mac. Write this down if you need it for later.

If you see multiple accounts listed, only one will have "Admin" next to it. That is the administrator account. Standard accounts will show "Standard" instead. If you are not sure which account you use to log in, restart your Mac and look at the login screen — the account you normally click on is your administrator account.

Resetting your password if you have forgotten it

If you remember your username but have forgotten your password, the method depends on which version of macOS you are running and whether you have access to your Apple ID.

On macOS Monterey and later, restart your Mac and hold down the power button until "Loading startup options" appears. Click Options, then click Continue. When prompted, select your administrator account and click Next. You will be asked to enter your Apple ID password. Once you do, you can create a new administrator password. This method works only if you remember your Apple ID password.

On older versions of macOS, restart your Mac and hold Command + R to enter Recovery mode. Open Utilities from the menu bar, then select Terminal. Type resetpassword and press Enter. A window will open where you can select your administrator account and set a new password. You do not need your Apple ID for this method, but you do need to reach Recovery mode.

Using your Apple ID to regain access

If you have set up your Mac with an Apple ID (which is common on newer Macs), you can use that ID to reset your administrator password without erasing your Mac. This is the fastest way to regain access if you have forgotten your password and do not have a recovery key.

Restart your Mac and wait for the login screen. Click the question mark icon or "Forgot password?" if it appears. Enter your Apple ID email address and password. Your Mac will verify your identity and allow you to create a new administrator password. You will then be able to log in with your username and the new password you just created.

This method works only if your Mac is connected to the internet and your Apple ID is linked to your administrator account. If your Mac was set up offline or with a local account (not an Apple ID), this option will not be available.

Recovery mode and the Terminal method

If you cannot use your Apple ID to reset your password, you can use macOS Recovery mode to access the Terminal and reset it manually. Restart your Mac and when ready hold Command + R until you see the Apple logo or a spinning globe. This boots your Mac into Recovery mode, where you have access to system tools.

Once in Recovery mode, click Utilities in the menu bar at the top, then select Terminal. Type the command resetpassword (all one word, no spaces) and press Enter. A window will open showing your user accounts. Select your administrator account from the dropdown, enter a new password twice to confirm it, and click Save. Restart your Mac normally and log in with your username and new password.

This method erases nothing and does not require your Apple ID. It works on all versions of macOS that support Recovery mode. The only requirement is that you can restart your Mac and hold the correct key combination to enter Recovery mode.

When you need to erase and start over

If you cannot remember your Apple ID password, do not have a recovery key, and cannot access Recovery mode, your only option is to erase your Mac and set it up again. This will delete all files, applications, and settings on your Mac, so it should be a last resort.

To erase your Mac, restart it and hold Command + R to enter Recovery mode. If you cannot reach Recovery mode, hold the power button until your Mac shuts down, then turn it back on and when ready hold Command + Option + R (or Shift + Option + Command + R on newer Macs) to enter Internet Recovery mode. Once in Recovery mode, click Utilities, then Disk Utility. Select your main drive (usually called "Macintosh HD"), click Erase, and follow the prompts. After erasing, your Mac will restart and ask you to set up a new administrator account.

Before you erase, check whether your Mac is covered by AppleCare or whether you have access to Apple Support. Apple can sometimes help you regain access without erasing, especially if you can prove ownership of the Mac.

Keeping track of your administrator information

Once you have confirmed your administrator username and password, write them down and store them somewhere safe. A password manager like 1Password, Bitwarden, or the Keychain app built into macOS can store this information securely so you do not have to remember it.

If you use a password manager, make sure you also know your master password — the one that unlocks the password manager itself. If you forget that, you will be locked out of everything stored inside.

Consider setting up a recovery key as well. On newer Macs, you can create a recovery key in System Settings under Users & Groups. This is a long string of characters that can reset your password even if you forget your Apple ID password. Store this key somewhere separate from your Mac — a physical safe, a trusted family member, or a find cloud storage service.

Frequently Asked Questions

Is my computer name the same as my username?

No. Your computer name is what appears in network settings and is used to identify your Mac on a network. Your username is the short name you type at the login screen. You can find both in System Settings, but they are different. Your username is what you need to log in.

Can I see my password if I have already logged in?

No. macOS does not store your password in a readable form anywhere on your Mac. Once you log in, your password is verified and then discarded. If you forget it, you must reset it using one of the recovery methods described above.

What if I have multiple administrator accounts on my Mac?

You can have more than one administrator account, but you only need one to make system changes. If you have forgotten the password for one administrator account, you can log in with a different administrator account and reset the other one's password through System Settings.

Do I need my Apple ID to reset my password?

Not necessarily. If you can reach Recovery mode and access the Terminal, you can reset your password without your Apple ID. However, if your Mac is newer and set up with an Apple ID, that is usually the fastest method. If you do not have either option, you will need to erase your Mac.

What is a recovery key and do I need one?

A recovery key is a backup code that can reset your password if you forget both your administrator password and your Apple ID password. It is optional but recommended. You can create one in System Settings under Users & Groups, and you should store it somewhere safe and separate from your Mac.