Click to See Complete Forum and Search --> : deleting a user
mfghazi
12-31-2000, 10:31 PM
How we can delete a user?
I think there was thread some time ago about the same topic. If any knows about it, please tell me the link as I couldn't find it.
------------------
Ghazi, Muhammad Farhan
As root:
deluser <username>
http://www.linuxnewbie.org/ubb/smile.gif
You could use 'userdel' or just remove the user by hand by editing /etc/passwd.
linuxprompt# userdel -r username
-or-
linuxprompt# vipw
Depending on your distro, as root, do "userdel <username>" or "deluser <username>". Editing /etc/passwd will only remove the user's access to the system, but will not delete their home directory or their files.
Also, you might want to use the find command with the -user <username> option to find and delete files owned by that user which might exist in directories other than the user's home directory.
Happy New Year!!