Close Menu
miapple.me – Tech.Blogmiapple.me – Tech.Blog

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Content Is Still King! 12 Years Of Blogging: miapple.me – Tech.Blog’s 12th Anniversary

    January 21, 2024

    Content Is King Again! 10 Years Of Blogging: miapple.me – Tech.Blog’s 10th Anniversary

    January 21, 2022

    Fixing: Time Machine couldn‘t complete backup

    April 30, 2021
    • Downloads
    • Email Subscription
    • Imprint
    • Privacy Policy
      • Push Notifications Subscription
      • Terms of Use
    • Search
    miapple.me – Tech.Blogmiapple.me – Tech.Blog
    • Apps
    • AirPlay
    • Apple
      • Apple TV
      • Apple Watch
      • iCloud
      • iTunes
      • macOS
    • iOS
    • HomeKit
    • Plex
    • Raspberry Pi
    • Windows
    • Downloads
    • Email Subscription
    • Imprint
    • Privacy policy
      • Push Notifications Subscription
      • Terms of Use
    • Search
    Subscribe
    miapple.me – Tech.Blogmiapple.me – Tech.Blog
    Home»macOS»Fixing Mac No Admin Account On macOS Mojave Or Later
    macOS

    Fixing Mac No Admin Account On macOS Mojave Or Later

    Gee Are PabstBy Gee Are PabstFebruary 3, 2021Updated:February 7, 202164 Comments4 Mins Read
    Fixing Mac no admin account on macOS delete File .AppleSetUpDone
    Fixing Mac no admin account on macOS delete File .AppleSetUpDone

    macos-icon 225x225If your Mac has no admin account anymore or if your macOS account lost its administrator rights on macOS 10.14 Mojave, macOS 11 Big Sur or later, you can recover the macOS admin rights easily by running again Apple’s Setup Assistant tool to add a new admin account. For getting in the setup process, you have to remove the file “.AppleSetUpDone” via Terminal or macOS Recovery mode. Then, you can recover the admin rights of your original admin account via the new administrator account. After that, you can reboot into your recovered one and delete the interim admin account.

    Note: The following fixes apply to macOS Mojave 10.14, macOS Big Sur 11 and later. For macOS High Sierra 10.13 and earlier, fixing Mac no admin account is solved via the “Command – S” (SUM = Single User Mode) route which is deactivate in later macOS versions: How To Recover Lost Admin Rights On macOS High Sierra and Sierra, Mac OS X El Capitan And Yosemite

    Fixing Mac no admin account on macOS delete File .AppleSetUpDone
    Fixing Mac no admin account on macOS delete File .AppleSetUpDone

    The following fix “Mac no admin account” works if you lost admin account and admin rights

    • during upgrading, e.g. from OS X 10.13 High Sierra to macOS Mojave 10.14 or to macOS Big Sur 11
    • after restoring your Mac from backup, or
    • after making heavy modifications to the system

    The above mentioned situations can result in destroying or downgrading your admin account to a standard user account with no admin rights. In consequence,  you cannot log in to your admin account or cannot use it for changing system settings.

    Even though the Setup Assistant only runs once when you first install Mac OS X / macOS, it remains on your computer and is prevented from running by the presences of a hidden file called ‘.AppleSetupDone‘ in a system folder on your Mac. Therefore, to go through the Setup Assistant again you can create a fresh admin account, you simply need to remove this file:

    Mac no admin account: How to recover admin rights by deleting .AppleSetupDone file via Terminal

    1. Open Terminal in macOS.
    2. Change the directory: Type cd /var/db and hit enter tab.
    3. Run the following command to remove file “.AppleSetupDone”: Type sudo rm -f ./.AppleSetUpdone and hit enter tab.
    4. Restart your Mac and go through the Setup Process.  Create a new account and take a DIFFERENT username than your Standard user account (e.g. “Backup Admin”)
    5. After logging in, open System Preferences and select your Standard user account and check the box labeled “Allow user to administer this computer” (Note:  if the box is grayed out, click the lock icon the lower left to enabled editing)
    6. Log out of your Mac and log in in as your original account.
    7. Either delete the Admin account you created in step 4 or, even better, leave it as a backup account.

    Mac no admin account: How to recover admin rights by deleting .AppleSetupDone file via macOS Recovery Mode

    1. Shut down your Mac.
    2. Reboot your Mac and press and hold “Command + R“.
    3. At the “macOS Recovery”-Screen select a user, click on “Next” and enter the user’s password. Note: If you do not know the password click on “Forgot all passwords” and sign in with your Apple ID. This step is needed if you secured your Mac with FileVault.
    4. On the next screen select Disk Utility and mount all internal discs, especially “Macintosh HD – Data“.
    5. Close Disk Utility and open Terminal via selecting Utilities and then Terminal.
    6. At the prompt (in my case [-bash-3.2#]) type cd /Volumes/”Macintosh HD”/var/db and hit enter tab.
    7. Run the following command to remove file “.AppleSetupDone”: Type rm -f ./.AppleSetUpdone and hit enter tab.
    8. Then reboot your Mac: Type reboot and hit enter tab.
    9. Your Mac reboots. Go through the Setup Process.  Create a new account and take a DIFFERENT username than your Standard user account (e.g. “Backup Admin”)
    10. After logging in, open System Preferences and select your Standard user account and check the box labeled “Allow user to administer this computer” (Note:  if the box is grayed out, click the lock icon the lower left to enabled editing)
    11. Log out of your Mac and log in in as your original account.
    12. Either delete the Admin account you created in step 4 or, even better, leave it as a backup account.

    Lost access to admin account on macOS 10.14 Mojave or later, can easily restored by reactivating Apple’s Setup Assistant tool through deleting the file “.AppleSetupDone” via terminal or macOS recovery mode. After rebooting your Mac or MacBook you walk through the process to set up a fresh administrator account with full admin rights.

    Stay tuned! 😉

    El Capitan MacBook macOS Big Sur macOS High Sierra macOS Mojave macOS Sierra Troubleshooting Yosemite
    Previous ArticleHow To Install iTunes On Windows 10 and Windows 8
    Next Article Calipio: Screen Recording Without Registration, E2E-encrypted
    Gee Are Pabst
    • Website
    • Facebook
    • X (Twitter)
    • Pinterest
    • LinkedIn

    Hi there,my name is Gee Are, blogger and analyst. Blogging is my Passion! I’m the founder and owner of the two blogs called pabst.socialmedia and miapple.me - Tech.Blog.My work experience as a blogger and analysist (Internet Intelligence, SEO and social media) is the basis of the services of pabst.socialmedia.Find more about me.

    Related Posts

    macOS

    Fixing: Time Machine couldn‘t complete backup

    April 30, 2021
    Android

    Calipio: Screen Recording Without Registration, E2E-encrypted

    February 15, 2021
    Apps

    How To Install iTunes On Windows 10 and Windows 8

    January 22, 2021
    View 64 Comments

    64 Comments

    1. Raymond Amoateng Frimpong on November 9, 2021 17:51

      thank you sooo much

      Reply
      • Gee Are Pabst on November 9, 2021 20:21

        You’re welcome! Thanks for your feedback!

        Reply
    2. Carly Getz on October 29, 2021 04:16

      Hello, does this delete the content in the computer?

      Thank You.

      Reply
      • Gee Are Pabst on October 29, 2021 06:16

        Hi Carly,
        no, it doesn’t!
        Best regards,
        Gee Are

        Reply
    3. Kyle on September 17, 2021 21:47

      Thank you this helped so much ??

      Reply
    4. Ernie Smith on August 13, 2021 07:29

      Hey there, I got most of the way through this process, but after trying to make the new account, the machine stops at the create-new-account screen; just sticks there with no resolution. I restart and the account is technically created but will not log in, and the recovery mode does not detect the account either.

      My use case was downgrading from Monterey, in case you were wondering.

      Reply
      • Gee Are Pabst on August 13, 2021 15:11

        Hi Ernie,

        please try the following:
        If your Mac restarted because of a problem
        How to reset the SMC of your Mac
        Reset NVRAM or PRAM on your Mac
        How to use safe mode on your Mac
        Best regards,
        Gee Are

        Reply
    5. tom walshe on August 2, 2021 18:50

      I can’t get to the set up process, gone through the steps using recovery, put each line in Terminal and didn’t say anything each line (put it in wrong a few times and it said doesn’t recognise or something) put reboot but then it just brings me back to the login screen, no setup process?

      Reply
    6. Rob on July 31, 2021 05:07

      Mac no admin account instructions worked for me on Mac M1. Thanks!

      Reply
      • Andrew on December 10, 2021 03:34

        Yeah worked for me too. No need to mount drives though as they are already mounted after booting into recovery. Also, once in the db directory I just ran rm .AppleSetUpdone

        Reply
    7. Gee Are Pabst on May 3, 2021 22:04

      Hi Mary,
      which Mac do you have, eventually one with an M1 chip? Which macOS is running on your Mac, Big Sur?
      Best regards,
      Gee Are

      Reply
    8. Mary on May 3, 2021 19:27

      Terminal doesn’t work because there are no admin users. When I enter recovery mode it says there are no admin users and only gives a restart option. Probably a good thing security-wise that this is difficult but what a pain! I will have to contact Apple support.

      Reply
    9. Ken on April 27, 2021 18:19

      The instructions for doing this via Terminal don’t work, because sudo requires an admin account — and the lack of an admin account is the whole reason for going through this!

      Reply
      • Gee Are Pabst on April 29, 2021 20:04

        Hi, you need to read the instructions under “Mac no admin account: How to recover admin rights by deleting .AppleSetupDone file via macOS Recovery Mode“!

        Reply
        • J on March 5, 2022 23:22

          When I try to enter recovery mode it only lets me restart because “no administer account is associated with this volume.” How else can I do this?

          Reply
          • Gee Are Pabst on March 6, 2022 00:10

            Hi J,
            try what Nigel suggested here in his comment.
            Best regards,
            Gee Are

            Reply
        • Linda on May 6, 2022 12:41

          When we type cd /Volumes/”Macintosh HD”/var/db,it shows no this file?

          Reply
          • Gee Are Pabst on May 6, 2022 13:08

            You have to use instead of „Macintosh HD“ the name of your Macs hard disk name!

            Reply
            • Linda on May 7, 2022 02:36

              what’s the name of HD,we just found the same name as Macintosh HD

              Reply
    10. Pingback: How To Recover Lost Admin Rights On macOS High Sierra and Sierra, Mac OS X El Capitan And Yosemite - miapple.me

    Newer Comments →
    Leave A Reply Cancel Reply

    Top Posts

    Fixing ‘Cannot Connect MacBook To iPhone Via Bluetooth’

    May 5, 20166,980 Views

    Fixing No Notification Sounds On iPhone When Locked

    January 8, 20214,553 Views

    How To Fix MacBook Micro-Vibrations While Charging Due To Insufficient Grounding

    June 21, 20203,594 Views

    Fixing Mac No Admin Account On macOS Mojave Or Later

    February 3, 20212,131 Views

    Installing Huawei E3372 On macOS 11 Big Sur, Mac OS 10.12 Sierra And macOS 10.13 High Sierra

    August 11, 20161,876 Views

    Apple iCloud Mail Blocks Outbound Emails: Silent Filtering And How To Fix It

    December 1, 2020817 Views
    Featured Reviews

    Fixing ‘Cannot Connect MacBook To iPhone Via Bluetooth’

    May 5, 20166,980 Views

    Fixing No Notification Sounds On iPhone When Locked

    January 8, 20214,553 Views

    How To Fix MacBook Micro-Vibrations While Charging Due To Insufficient Grounding

    June 21, 20203,594 Views
    Our Picks

    Content Is Still King! 12 Years Of Blogging: miapple.me – Tech.Blog’s 12th Anniversary

    January 21, 2024

    Content Is King Again! 10 Years Of Blogging: miapple.me – Tech.Blog’s 10th Anniversary

    January 21, 2022

    Fixing: Time Machine couldn‘t complete backup

    April 30, 2021

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    • Home
    • Search
    • About Us
    • Contact Us
    Copyright © 2012-2025 miapple.me™

    Type above and press Enter to search. Press Esc to cancel.