Where your Mac stores admin credentials
Your Mac admin username is the account name you use to log in — the one that appears on the login screen. Your password is what you type after that. If you are the person who set up the Mac, you already know both. If you inherited the machine, borrowed it, or forgot what you set, you have a few ways to find or reset them without calling Apple.
The admin account is the one with permission to install software, change system settings, and create new user accounts. On most personal Macs, there is only one account, and it has admin powers by default. On shared or work Macs, there may be multiple accounts, and only some have admin rights.
Key Takeaways
- Your admin username appears on the Mac login screen and in System Settings under Users & Groups — you do not need a password to see it.
- If you know the admin password, you can verify it by trying to change a system setting or install software, both of which prompt for admin credentials.
- If you forgot the password, you can reset it using your Apple ID, a recovery key, or macOS Recovery mode, depending on your Mac's age and setup.
- If the Mac is password-protected and you have no recovery option, you will need to contact the person who set it up or take it to an Apple Store.
- On a Mac you own but cannot access, erasing and reinstalling macOS is possible but will delete all files unless you have a backup.
Finding the admin username without a password
Open System Settings (or System Preferences on older Macs). Click Users & Groups or Users & Accounts. The account with a house icon next to its name is the admin account. That name is your admin username. You do not need the password to see this — anyone with access to the Mac can read it.
You can also see the admin username on the login screen itself. It appears in the list of accounts, or as the name of the currently logged-in user in the top-right corner of the menu bar.
Testing whether you know the admin password
If you think you know the password, try using it. Open System Settings and click General, then click Software Update. macOS will prompt you to enter your admin password. Type what you think it is. If it works, the prompt closes and the update check proceeds. If it is wrong, you see "Password incorrect" and can try again.
Another test: try to install a piece of software. read any free app from the Mac App Store, or try to drag an app into Applications. macOS will ask for the admin password. This is a safe, low-stakes way to confirm whether you have it right.
Resetting a forgotten admin password using your Apple ID
If you forgot the password but you remember the Apple ID associated with the account, restart the Mac and wait for the login screen. Click the question mark or "?" button (it varies by macOS version), or look for a "Reset Password" option. You will be asked to enter your Apple ID email and password. If you provide both correctly, macOS will let you create a new admin password.
This method works on Macs running macOS 10.7 or later, as long as the account was set up with an Apple ID. If the account was created before Apple ID integration, or if you do not remember the Apple ID password, this route is closed.
Using macOS Recovery mode to reset the password
Restart your Mac and hold Command + R as it boots. This launches macOS Recovery, a built-in repair environment. Once it loads, click Utilities in the menu bar, then Terminal. In the Terminal window, type resetpassword and press Enter. A password reset tool will open. Select the admin account from the dropdown, enter a new password, and click Save.
Recovery mode works even if you do not remember your Apple ID. However, it requires you to be able to restart the Mac and reach the Recovery screen — it does not help if the Mac is locked at login and you cannot restart it.
What to do if you have a recovery key
If the Mac uses FileVault encryption (full-disk encryption), Apple may have given you a recovery key when you first turned it on. This is a long string of letters and numbers, often written down or stored in your Apple ID account. At the login screen, after entering a wrong password a few times, you may see an option to use a recovery key instead. Enter it, and you can reset the password.
Check your email for messages from Apple about FileVault, or log into your Apple ID account at iCloud.com and look for security information. The recovery key is usually listed there if it exists.
When you cannot reset the password yourself
If the Mac is password-protected, you do not have the Apple ID credentials, there is no recovery key, and you cannot reach Recovery mode, you have reached the limit of self-help. At this point, the Mac is locked by design — Apple built it that way to prevent theft.
Your options are to contact the person who set up the account (if you borrowed or inherited the Mac), take the Mac to an Apple Store with proof of ownership, or erase the Mac and reinstall macOS. Erasing deletes all files on the drive, so only do this if you have backed up everything you need or if the Mac is new to you and empty.
To erase and reinstall: restart the Mac, hold Command + R, wait for Recovery mode, click Utilities, then Disk Utility. Select the main drive, click Erase, and follow the prompts. Once that finishes, you can reinstall macOS and set up a new admin account from scratch.
Frequently Asked Questions
Can I see the admin password if I am logged in as a different user?
No. Passwords are stored in a way that even other accounts on the same Mac cannot read them. You can see the admin username, but not the password. If you need admin access, you must either know the password or use one of the reset methods above.
What if the Mac is asking for a password I never set?
This usually means someone else set up the account before you got the Mac. Try common passwords (the person's name, a birthday, or a straightforward phrase). If that does not work, use the Apple ID reset method or Recovery mode. If the Mac is brand new and you are the first user, contact Apple — this is rare and may indicate a setup error.
Does resetting the password erase my files?
No. Resetting the password using Apple ID, Recovery mode, or a recovery key changes only the password. All your files, apps, and settings stay in place. Erasing the Mac (the last resort) does delete everything, but that is a separate step you choose only if you cannot reset the password any other way.
Can I find the admin password if it is written down somewhere on the Mac?
Passwords are not stored as readable text anywhere on the Mac that a regular user can access. If someone wrote it down in a note, email, or document, you can search for it using Spotlight (Command + Space, then type a keyword). But the Mac system itself does not keep a copy you can read.
What if I reset the password but now I cannot log in?
Try the new password you just created, character by character. Passwords are case-sensitive, so check whether Caps Lock is on. If you are still stuck, restart the Mac, hold Command + R again, and use the password reset tool a second time to create a different password. If the Mac will not boot into Recovery mode, take it to an Apple Store.