Remove User Info from password file etc...
Posted on 1998-06-04
I'm looking for a small piece of code that will read a file:
One user per line.
Read this file, then find that user in the password file and remove the line that they are listed in. Then delete their /home/user1 directory and any sub directories, then delete their /var/spool/mail/user1 mail box.
Thanks in advance.