Unable to delete user account
I just had the same, well not quite the same but very similar problem to this:
... on my 2017 12" MacBook.
I'm currently unable to delete an user account on High Sierra.
The minus button is greyed out in the User and Groups panel.
Trying to remove from the terminal gives me this permission error:
sudo /usr/bin/dscl . -delete "/Users/tmp"
<main> delete status: eDSPermissionError
<dscl_cmd> DS Error: -14120 (eDSPermissionError)
Any idea ?
My issue differed in this way:
Logged in as root user, the minus button was greyed out. But...
Logged in as my main admin account the minus button is not greyed out, but pressing pops down a sheet asking me for the password of the user I'm trying to delete. Entering the correct password made it shake as if it's the wrong password.
I tried resetting the password (using the Reset Password button in the panel for that user I'm trying to delete) and then tried to delete again (using the new password of course), but it still failed.
MacBook (Retina,12-inch,2017), macOS High Sierra (10.13.6), base model m3, 8/256