Can't delete admin user in High Sierra

Hello, I created admin account called "admin" on my new MacBook Pro to use Migration Assistant to transfer my user account from my old computer's time machine backup. After all done I still can't delete the original admin account from the new user account. Admin account is logged out and I'm deleting it from another admin account.


When trying to delete it from Terminal with "sudo dscl . -delete /Users/admin" I get this err:


<main> delete status: eDSPermissionError

<dscl_cmd> DS Error: -14120 (eDSPermissionError)

MacBook Pro TouchBar and Touch ID, macOS High Sierra (10.13)

Posted on Sep 27, 2017 2:12 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 7, 2017 11:05 AM

Thank You!

This worked for me. To also repeat the solution in this thread:

From the Terminal call


sudo mv /var/db/auth.db /var/db/auth.db.old


and reboot to force a rebuild of /System/Library/Security/authorization.plist.

After this, the delete symbol in the user system settings was, in my case, not greyed out anymore and I was able to regularly delete the unwanted user.

43 replies

Nov 5, 2017 6:42 AM in response to jkrcmar

I’ve had the same problem with not being able to delete a user account, and I tried everything listed here and even my own troubleshooting. I took my MacBook into the store to get something else diagnosed- before I left I was about to ask the genius about it, went to show him the problem and the “-“ sign WAS NO LONGER GREYED OUT. Not sure what form of wizardry happened but it did. Perhaps it was something to do with the tests they ran. Maybe take it in? It worked for me.

Oct 22, 2017 6:57 AM in response to Gregory Olds II

I am having the exact same problem.

Getting the same FileVault related error message in the log.

Even trying to delete the user as root via terminal yields a PermissionError which is ridiculous.

But I did not migrate any user via TimeMachine or the assistant.

I created the temporary user to change my main admin user‘s account name (following the official apple support thread on how to change an admins account name and home folder).

This is truly annoying.

Any help would be greatly appreciated.

Oct 23, 2017 3:10 PM in response to jkrcmar

Same issue - and I tried the hawkdive.com website and went through all the steps, to no avail. It's not a huge issue, but the OCD in me can't stand that I have 2 user accounts.... I've tried everything. Dropping it to a standard user, disabling everything, setting it completely up, upgrading, ugh... no idea. Send help, the obsessive compulsive is about to punch someone.

Oct 25, 2017 9:44 AM in response to jkrcmar

I hope to be able to solve this issue for you and it seems to stem (in my case anyway) from using migration assistant. If you install the new operating system, create a new user account and login and then migrate there seems to be some sort of conflict. Quite what that conflict is I am not sure but I think it relates to the UID/USER ID and password.


You could try this and let me know if it works for you to help anyone else should they run into this issue.


1. LOG OUT of all accounts.

2. LOG IN to the account you wish to delete.

3. CHOOSE SYSTEM PREFERENCES>USERS & GROUPS

4. Click the Padlock and Authenticate.

5. Choose the account in the list that YOU WISH TO KEEP. Remember you should be currently logged into the account you wish to delete.

6. Click CHANGE PASSWORD and change the password of the account which you wish to keep to something else other than that which you were using.

7. LOG OUT of the account.

8. LOG BACK IN to the account you wish to keep with your new password.

9. GO BACK TO SYSTEM PREFERENCES>USERS & GROUPS, click the padlock, authenticate and hopefully when you click on the account you wish to delete the minus symbol will be available and you can simply remove the account.

10. Change your password back to your usual password if thats what you want to do.


Again please do let people know if this works to help others with the same issue. Similarly if it doesn't work for you please also let post and let people know.


Good luck and hopefully this will do the trick for you and any other people running into this issue.


All the best. 😉


Stefan

Nov 9, 2017 8:10 PM in response to Narehate

@Narehate, I tried like everything here, but yours is the only solution that worked. I copied the generated user ID as noted, changed the original, and put that on my account.


For some reason your term command is wonky. Here's the one I used:


diskutil apfs updatePreboot disk1s1


That seems to have done it. Hopefully nothing blows up later!


Thanks.

Dec 1, 2017 8:05 PM in response to Stefan2908

Thank you Stefan2908! Your solution worked perfectly and ended days of frustrating attempts to delete the extra user. I had used migration assistant as you surmised. Nothing I tried worked, including Terminal. I couldn't think why your suggestion would work and it was with trepidation that I went back to Users & Groups in step 9. But there - finally - was the minus symbol. I clicked it and gladness ensued. 🙂

Dec 16, 2017 7:33 PM in response to Stefan2908

Thank you, Stefan!


This worked for me on High Sierra. Like others, I had to set up a temp Admin account for installing High Sierra. Then I imported my prior account via Time Machine. But I could not subsequently delete the original temp admin account. Stefan's solution worked for me. Notably, when I reached step 8 in his instructions (logging back in to the account I wanted to keep), I had to re-authorize my iCloud account in System Preferences. Happy to finally be rid of that temp account.

Dec 18, 2017 4:11 PM in response to LeGaTTiS

I had success accessing the greyed out Guest User options in System Preferences by using Stefan's previous work around but I still have a phantom guest user pop up as an option when I would restart my MBP in High Sierra. Well, I just ran the last update for the OS on the app store and low and behold, phantom guest user disappeared. Restarted a bunch of times and its true. No phantom guest. Hope that helps anyone still with this issue.


Tr3nton

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can't delete admin user in High Sierra

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.