
Follow the prompts to select the locked admin account and reset its password. Once you see the Recovery Mode window, go to Utilities > Terminal.

Restart your Mac and hold down the Command + R keys. If you are unable to use Single-User Mode, you can use Recovery Mode to unlock the administrator account. Finally, type “reboot” and press Enter to restart your Mac. Then, type “rm /var/db/.AppleSetupDone” and press Enter. Once you see the Terminal window, type “mount -uw /” and press Enter. Restart your Mac and hold down the Command + S keys. If you are comfortable with using the Terminal, you can use Single-User Mode to unlock the administrator account.

Click on “Reset Password” and follow the prompts to reset the password for the account. Go to System Preferences > Users & Groups and select the locked admin account. If there is another administrator account on the Mac, you can use it to unlock the locked admin account.

Sometimes, restarting your Mac can resolve issues with the administrator account. To unlock the administrator account on a Mac, you can try the following steps: Restart your Mac
