Usedel command doesn't delete user directory?
I create a user using adduser command. After that I delete the user using "userdel" command. The user doesn't exist but the directory for the client still exist. Why is that? ANyone know method to delete a user with directory?
Thanks |
If you're that worried about it, you could create a really, really small script that does it since the user's directory is almost always the same as the username... or if there's any chance that you might want to re-instate the user at some point, rather than removing the directory you could simply hide it.
HTH |
userdel -r
-r removes home/user folder the mail files in /var/spool/mail will remain there |
All times are GMT -5. The time now is 11:45 PM. |