Missing a Mac administrator account? Create a new administrator account in macOS
This process will involve booting into recovery mode to remove the setup files from your Mac, which allows the macOS Setup Assistant to run again, allowing you to create a new administrator on your Mac account. This works on macOS Monterey and Big Sur and earlier, on M1 and Intel Macs.
- Boot your Mac into recovery mode by restarting your Mac and holding down Command R (Intel Mac) or the power button (M1 Mac)
- For M1 Mac , select "Options" in the boot menu that appears
- On the macOS Utilities screen, open Disk Utility
- Select "Macintosh HD – Data" and select the "Mount" data drive
- Exit Disk Utility
- Draw down the "Utilities" menu and select "Terminal"
- Enter the following command in the terminal:
cd /Volumes/Macintosh HD/var/db/
- The following is exactly the same Enter the following command as shown in the picture:
##rm .AppleSetupDone
Restart your Mac and complete the Setup Assistant program. Create a new admin user account on your Mac like your Mac is new, this will be an admin account -
You will now create a new admin account, this account will be brand new And a completely different user account than your standard user account. Assuming done correctly, the standard user account and all user data still exists.
You can use this admin user account to authenticate with admin requests and logins as needed, or you can modify the original user account to become an admin account again. We’ll cover that next.
How to set up a standard user account as an administrator account in macOS
Want to restore your original Mac user account to an administrator account? It's easy:
Boot into your newly created administrator account, then pull down the Apple menu and select System Preferences- Go to Users and group" and click the padlock icon to modify the user account
- Select the original user account you want to modify to administrator account permissions
- Select the "Allow user to manage this computer" checkbox
-
Restart your Mac again, this time logging into the original user account, which has now been upgraded to an administrator user account-
If you wish, you can delete a temporarily created administrator user account from your Mac, or keep it as a backup administrator account, or even as the only administrator account.
If you end up in a situation where the admin account becomes a standard user account, there are other options available, for example you can
convert a standard user account to an admin account via the command line, which is more suitable for advanced user.
The above is the detailed content of Mac Don't have an administrator account in macOS Monterey or Big Sur? this is a fix. For more information, please follow other related articles on the PHP Chinese website!