Script: Check for Orphaned HomeDirs
It seems no matter how much you try you cannot ever get those damned orphaned homedirs cleaned up. Well, this helps. Our org always has additional groups in the homedir (no, we don't just let the users have whatever they want in there, so we have to monitor). This causes a little confusion amongst most orphaned file checkers (as there is still a group in there that resolves). Read on for the code and an example.
What this script does is it scans a directory's subdirectories (as with many homedirs, the subdirectories are usually the AD account name). It then tries to match the subdirectory to an AD account name. If this proves that one doesn't exist, it prompts and spits out the ACL info and a prompt to move the files. If you say yes, it moves them to the directory you specified in arg1.
New Theme
every once in a while i like to change things up a little, so i changed themes. One thing i noticed was my array of crazy tags off to the right, i'm going to do some cleaning up of those i think.
