Checking the Easy Stuff





        # Check some obvious stuff
        if ($uid < $LOWUID) {
                next;
        }
        print "Checking $name\n";
        if ($uid == 0 || $gid == 0) {
                print "    $name has $uid and gid $gid!\n";
        }
        if ($password eq "") {
                print "    $name has no password!\n";
        }
        if ($shadow == 1 && !defined($password{$name})) {
                print "    $name has no entry in shadow file $SHADOW!\n";
        }
        if ($shell ne "/bin/bash" && $shell ne "/bin/csh" &&
                $shell ne "/bin/tcsh") {
                print "    $name is disabled with shell $shell\n";
        }
        if (! -d $home) {
                print "    $name has homedir $home which is not a dir.\n";
        }
        else {