version 1.35, 2000/04/16 20:46:22 |
version 1.36, 2000/05/26 14:54:17 |
|
|
printf("Login %s is off but still has a valid shell and alternate access files in\n\t home directory are still readable.\n",$1); |
printf("Login %s is off but still has a valid shell and alternate access files in\n\t home directory are still readable.\n",$1); |
} |
} |
if ($3 == 0 && $1 != "root") |
if ($3 == 0 && $1 != "root") |
printf("Login %s has a user id of 0.\n", $1); |
printf("Login %s has a user ID of 0.\n", $1); |
if ($3 < 0) |
if ($3 < 0) |
printf("Login %s has a negative user id.\n", $1); |
printf("Login %s has a negative user ID.\n", $1); |
if ($4 < 0) |
if ($4 < 0) |
printf("Login %s has a negative group id.\n", $1); |
printf("Login %s has a negative group ID.\n", $1); |
}' < $MP > $OUTPUT |
}' < $MP > $OUTPUT |
if [ -s $OUTPUT ] ; then |
if [ -s $OUTPUT ] ; then |
printf "\nChecking the $MP file:\n" |
printf "\nChecking the $MP file:\n" |
|
|
awk -F: '{ print $1 " " $3 }' $MP | sort -n +1 | tee $TMP1 | |
awk -F: '{ print $1 " " $3 }' $MP | sort -n +1 | tee $TMP1 | |
uniq -d -f 1 | awk '{ print $2 }' > $TMP2 |
uniq -d -f 1 | awk '{ print $2 }' > $TMP2 |
if [ -s $TMP2 ] ; then |
if [ -s $TMP2 ] ; then |
printf "\n$MP has duplicate user id's.\n" |
printf "\n$MP has duplicate user ID's.\n" |
while read uid; do |
while read uid; do |
grep -w $uid $TMP1 |
grep -w $uid $TMP1 |
done < $TMP2 | column |
done < $TMP2 | column |
|
|
if (length($1) > 8) |
if (length($1) > 8) |
printf("Group %s has more than 8 characters.\n", $1); |
printf("Group %s has more than 8 characters.\n", $1); |
if ($3 !~ /[0-9]*/) |
if ($3 !~ /[0-9]*/) |
printf("Login %s has a negative group id.\n", $1); |
printf("Login %s has a negative group ID.\n", $1); |
}' < $GRP > $OUTPUT |
}' < $GRP > $OUTPUT |
if [ -s $OUTPUT ] ; then |
if [ -s $OUTPUT ] ; then |
printf "\nChecking the $GRP file:\n" |
printf "\nChecking the $GRP file:\n" |