macOS forgot admin password and lost administrator access

macOS forgot admin password and lost administrator access

macOS lost administrator access, forgot admin password ?

There is a way to bypass this!

  1. Make sure that FileVault is not enabled.
    If you don’t know, then check it by opening:
    System Preferences > Security & Privacy > FileVault.
    If it says “FileVault is turned on for the disk …” then you won’t be able to fix it and you might as well stop reading this article.
  2. Make sure you have a reliable backup in the event something unexpected occurs. To learn how to use Time Machine please read Use Time Machine to back up or restore your Mac – Apple Support.

Confirm both of those before proceeding.

Then: Read and follow the instructions below with care.

As I understand it, you have a Mac with no Administrator accounts. Of course that is not supposed to be possible, but if that really is the case you can use the following technique to create a new, temporary Administrator account, the sole purpose of which will be to log in as an Administrator that can give your normal account Admin privileges.

There may be other techniques to recover from the “impossible” circumstance in which you find yourself, but the following is one that I have successfully used in the past.

It will not work in the following circumstances:

  • If you configured an EFI Firmware Password that will preclude recovery, unless you know that password.
  • It won’t work if you encrypted your startup volume with FileVault.

Please read everything that follows before continuing. If you have only one computer then you will need to print this for reference.

  • Power on or restart your Mac.
  • At the chime or grey screen, hold ⌘ and S on your keyboard (two fingers) to enter single-user mode.
  • At the localhost:/ root# prompt, type


fsck -fy

press Return.

This is a simple check for file system integrity and is optional. It may take a few minutes to complete during which time various messages will appear. None of them are relevant unless they indicate some unrecoverable error. Be patient. If you get concerned that the system has stalled or become unresponsive press the Return key. Nothing will happen other than to echo the Return character, advancing the text on the screen, confirming your Mac has not completely frozen.

When the integrity check completes pressing the Return key will result in the localhost prompt again, waiting for your input.

At the localhost:/ root# prompt, type each of the following lines, exactly as written, including capitalization, one line at a time, each line followed by the Return key. There is a single space preceding the first “slash” ( / ) character in each line:

mount -uw /

rm /var/db/.AppleSetupDone



The Mac will restart, and then take you through the entire setup and registration process that you have not seen since you originally unboxed it. Do not be concerned—none of the above deletes any information. All your pre-existing user accounts will still available, assuming they were not already erased prior to beginning this procedure.

Do not elect to transfer your information from another Mac: When you get to the “Transfer Information to This Mac” screen, select “Do not transfer any information now” and press Continue. Have your existing Apple ID and password ready. At the “Create a Computer Account” screen, create the new, temporary account using a different “Full name” and “Account name” than the one you already use. Remember the password you select. You don’t have to sign in to iCloud or anything else you might decide to do if you wanted to use that User Account for anything else.

When it completes, log in under that new account. Use System Preferences to change your normal account to “Allow user to administer this computer”. Log out, log in under your normal account and verify you can use it without restriction.

After that, you can safely delete the temporary account you just created by following these instructions: Delete a user or group – Apple Support. Before removing it, confirm you don’t need any of the files you might have created in that Account.

How to fix a split Fusion Drive

How to fix a split Fusion Drive

If your Fusion Drive appears as two drives instead of one in the Finder, it’s no longer working as a Fusion Drive. Here’s how to fix it.

Fusion Drive, a storage option on some iMac and Mac mini computers, combines a hard drive and flash storage in a single volume for improved performance and storage capacity. If your Fusion Drive appears as two drives instead of one in the Finder, it’s no longer working as a Fusion Drive. This can happen after replacing either drive of your Fusion Drive, or using software to intentionally split them into separate volumes.

You can continue using the two drives independently, or follow these steps to regain the benefits of having the single logical volume of a Fusion Drive.

Before you begin

If you’re not sure that your Mac was configured with a Fusion Drive, or that the drive has been split:

  1. Disconnect any external storage devices that are connected to your Mac.
  2. Choose Apple () menu > About This Mac, then click the Storage tab.
  • If you see a drive labelled Fusion Drive, your Fusion Drive is working and this article doesn’t apply to you.
  • If you have an Apple Fusion Drive that has been split, you should see two drives. One of them should be labelled Flash Storage, with a capacity of 24GB, 32GB, or 128GB. The other should be at least 1TB in size.

Use Terminal to create a Fusion Drive again

These steps permanently delete all data stored on the drives that make up your Fusion Drive. Make sure that you have a backup before continuing.

  1. Turn on your Mac and immediately hold down Command-R or Option-Command-R to start up from macOS Recovery. Release when you see the Apple logo or a spinning globe.
  2. When you see the macOS Utilities window, choose Utilities > Terminal from the menu bar.
  3. Type this command in the Terminal window, then press Return:

    diskutil list

  4. Terminal displays a table of data about your drives. In the IDENTIFIER column, find the identifier for each of the two internal, physical drives that make up your Fusion Drive. Usually the identifiers are disk0 and disk1. One of them should be 128GB or less in size. The other at least 1TB in size.
  5. Type the following command, replacing identifier1 and identifier2 with the identifiers you found in the previous step. Then press Return.

    diskutil cs create Macintosh\ HD identifier1 identifier2

    diskutil cs create Macintosh\ HD disk0 disk1
    If you get a disk unmounting error, enter diskutil unmountDisk identifier, using the first identifier you gathered previously. Then enter same command again using the second identifer.

  6. Type this command, then press Return:

    diskutil cs list

  7. Terminal displays additional data about your drives (volumes). Find the string of numbers that appears after ”Logical Volume Group” for the volume named Macintosh HD. It’s a number like 8354AFC3-BF97-4589-A407-25453FD2815A.
    +– Logical Volume Group 8354AFC3-BF97-4589-A407-25453FD2815A
    | =========================================================
    | Name: Macintosh HD
  8. Type the following command, replacing logicalvolumegroup with the number you found in the previous step. Then press Return.

    diskutil cs createVolume logicalvolumegroup jhfs+ Macintosh\ HD 100%

    diskutil cs createVolume 8354AFC3-BF97-4589-A407-25453FD2815A jhfs+ Macintosh\ HD 100%

  9. Quit Terminal to return to the macOS Utilities window.
  10. Choose Reinstall macOS, then click Continue to begin reinstalling the Mac operating system. Your Mac automatically restarts from your Fusion Drive when done.
MacBook 2016+ disable auto boot, stop MacBook Auto Boot On Lid Open/Charger connected

MacBook 2016+ disable auto boot

Stop MacBook Auto Boot On Lid Open/Charger Connected

To disable boot features before a repair:

    1. Double click on the drive that contains the macOS.
    2. Open the Applications folder.
    3. Open the Utilities folder.
    4. Double click on the Terminal application.
    5. Type the following text EXACTLY as shown (the last two characters are zeroes):

sudo nvram AutoBoot=%00

To re-enable boot features after a repair:

  1. Double click on the drive that contains the macOS.
  2. Open the Applications folder.
  3. Open the Utilities folder.
  4. Double click on the Terminal application.
  5. Type the following text EXACTLY as shown (the last two characters are zeroes):

sudo nvram AutoBoot=%03

  • Shut down the computer and close the display.
  • Open the display and verify that the computer turns on.
create a bootable installer for macOS

How to create a bootable installer for macOS Big Sur

You can use an external drive or secondary volume as a startup disk from which to install the Mac operating system.

Create a bootable installer for macOS

These advanced steps are primarily for system administrators and others who are familiar with the command line. You don't need a bootable installer to install macOS, but it can be useful when you want to install macOS on multiple computers without downloading the installer each time.

Download macOS

  1. Download a macOS installer, such as macOS Big Sur or macOS High Sierra.
  2. When the macOS installer opens, quit it without continuing installation.
  3. Find the installer in your Applications folder as a single ”Install” file, such as Install macOS Big Sur.

Use the ‘createinstallmedia’ command in Terminal

  1. After downloading the installer, connect the USB flash drive or other volume you’re using for the bootable installer. Make sure that it has at least 12GB of available storage and is formatted as Mac OS Extended.
  2. Open Terminal, which is in the Utilities folder of your Applications folder.
  3. Type or paste one of the following commands in Terminal. These assume that the installer is still in your Applications folder, and MyVolume is the name of the USB flash drive or other volume you’re using. If it has a different name, replace MyVolume accordingly.
  4. Big Sur:*

    sudo /Applications/Install\ macOS\ Big\ –volume /Volumes/MyVolume — /Applications/Install\ macOS\ Big\

  5. Catalina:*

    sudo /Applications/Install\ macOS\ –volume /Volumes/MyVolume

  6. Mojave:*

    sudo /Applications/Install\ macOS\ –volume /Volumes/MyVolume

  7. High Sierra:*

    sudo /Applications/Install\ macOS\ High\ –volume /Volumes/MyVolume

  8. Sierra:

    sudo /Applications/Install\ macOS\ –volume /Volumes/MyVolume –applicationpath /Applications/Install\ macOS\

  9. El Capitan:

    sudo /Applications/Install\ OS\ X\ El\ –volume /Volumes/MyVolume –applicationpath /Applications/Install\ OS\ X\ El\

  10. Press Return after typing the command.
  11. When prompted, type your administrator password and press Return again. Terminal doesn’t show any characters as you type your password.
  12. When prompted, type “Y” to confirm that you want to erase the volume, then press Return. Terminal shows the progress as the bootable installer is created.
  13. When Terminal says that it’s done, the volume will have the same name as the installer you downloaded, such as Install macOS Mojave. You can now quit Terminal and eject the volume.
    How to create a bootable installer for macOS

* If your Mac is using macOS Sierra or earlier, include the –applicationpath argument. The Sierra and El Capitan commands show the proper format of this argument.

Use the bootable installer

After creating the bootable installer, follow these steps to use it.

  1. Connect the bootable installer to a compatible Mac.
  2. Use Startup Manager or Startup Disk preferences to select the bootable installer as the startup disk, then start up from it. Your Mac will start up to macOS Recovery.
    Learn about selecting a startup disk, including what to do if your Mac doesn’t start up from it.
  3. Choose your language, if prompted.
  4. A bootable installer doesn’t download macOS from the Internet, but it does require the Internet to get information specific to your Mac model, such as firmware updates. If you need to connect to a Wi-Fi network, use the Wi-Fi menu in the menu bar.
  5. Select Install macOS (or Install OS X) from the Utilities window, then click Continue and follow the onscreen instructions.

Learn more

For more information about the createinstallmedia command and the arguments that you can use with it, make sure that the macOS installer is in your Applications folder, then enter this path in Terminal:

Big Sur:

/Applications/Install\ macOS\ Big\


/Applications/Install\ macOS\


/Applications/Install\ macOS\

High Sierra:

/Applications/Install\ macOS\ High\


/Applications/Install\ macOS\

El Capitan:

/Applications/Install\ OS\ X\ El\