Unable to remove Unix User

ericovk

Verified User
Joined
Apr 17, 2012
Messages
229
Location
Rotterdam, Netherlands
I have just deleted an account thas was suspended. When I tried to delete the account I got this error message:

Unable to remove Unix User. Continuing with the other files.
userdel: error deleting password entry userdel: error deleting shadow password entry userdel: error removing directory /home/<accountname>

Dispite this message I cannot find the user in /etc/passwd and the user's home folder seems to be gone to. Is there something I need to check or can I just ignore this message?
 
You need to create this user again. then, you need to execute those commands:
Code:
cd /var/spool/mail/
chown <accountname>:mail <accountname>

And after that you can remove this user and you'll see that there is no such error.

Good luck!
 
Back
Top