LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Usedel command doesn't delete user directory? (https://www.linuxquestions.org/questions/linux-general-1/usedel-command-doesnt-delete-user-directory-36115/)

mikeshn 11-21-2002 04:53 PM

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

Thymox 11-21-2002 04:56 PM

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

DavidPhillips 11-22-2002 12:18 AM

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.