Orphaned Home Directories?
For some reason on my mail server when I ran my 'delete-user.sh' script, it did everything correct except remove their actual /home/$USERNAME folder from the system. The users are deleted from /etc/passwd, /etc/shadow, /etc/group, & /etc/gshadow. Is there some way on my Linux system I can search and remove these useless orphaned home directories that didn't get deleted by my script? I am sure the are some 10-20 directories that are just vacant but I have too many users on the server to figure this out.
Thanks for any help!
|