-14120 (edspermissionerror) on delete user account

I am trying to delete user account which has been created for the postgres.

  1. When trying to do it from Users&Groups i am asked for password (not clear message "You need their password. Please enter your password to allow it") - neither my admin password nor login password of the postgres account are accepted.
  2. when trying to do through terminal getting error "-14120 (eDSpermission error) " after providing admin password
  3. when trying to use Directory utilities - by clicking on "-" nothing happens


I did all required action to uninstall / remove all data related to postgres.



Any advice i can remove this user account?



Thanks in advance!

MacBook Pro Retina (2015 and later)

Posted on Jan 22, 2019 1:48 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 28, 2019 5:57 AM

Found solution . The following file has to be deleted (please note system will keep telling you till the last entered symbol that file doesn't exist! but as soon as full path is specified, as a magic , system can find it)

/private/var/db/dslocal/nodes/Default/users/postgres.plist


Did it under root user (https://www.maketecheasier.com/enable-root-user-mac/) after giving to Terminal full disk access (http://osxdaily.com/2018/10/09/fix-operation-not-permitted-terminal-error-macos/).


Then restart computer and User is not longer there.

1 reply
Question marked as Top-ranking reply

Jan 28, 2019 5:57 AM in response to Aliaksandra_Minsk

Found solution . The following file has to be deleted (please note system will keep telling you till the last entered symbol that file doesn't exist! but as soon as full path is specified, as a magic , system can find it)

/private/var/db/dslocal/nodes/Default/users/postgres.plist


Did it under root user (https://www.maketecheasier.com/enable-root-user-mac/) after giving to Terminal full disk access (http://osxdaily.com/2018/10/09/fix-operation-not-permitted-terminal-error-macos/).


Then restart computer and User is not longer there.

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.

-14120 (edspermissionerror) on delete user account

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