version 1.69, 2005/01/06 00:00:38 |
version 1.70, 2005/02/07 06:08:10 |
|
|
if ($2 == "") |
if ($2 == "") |
printf("Login %s has no password.\n", $1); |
printf("Login %s has no password.\n", $1); |
if ($2 != "" && length($2) != 13 && ($10 ~ /.*sh$/ || $10 == "") && |
if ($2 != "" && length($2) != 13 && ($10 ~ /.*sh$/ || $10 == "") && |
($2 !~ /^\$[0-9a-f]+\$/) && ($2 != "skey")) { |
($2 !~ /^\$[0-9a-f]+\$/) && ($2 != "skey")) { |
if (system("test -s /etc/skey/"$1"") == 0) |
if (system("test -s /etc/skey/"$1"") == 0) |
printf("Login %s is off but still has a valid shell and an entry in /etc/skey.\n", $1); |
printf("Login %s is off but still has a valid shell and an entry in /etc/skey.\n", $1); |
if (system("test -d "$9" -a ! -r "$9"") == 0) |
if (system("test -d "$9" -a ! -r "$9"") == 0) |
|
|
uniq -d -f 1 | awk '{ print $2 }' > $TMP2 |
uniq -d -f 1 | awk '{ print $2 }' > $TMP2 |
if [ -s $TMP2 ] ; then |
if [ -s $TMP2 ] ; then |
echo "\n${MP} has duplicate user ID's." |
echo "\n${MP} has duplicate user ID's." |
while read uid; do |
while read uid; do |
grep -w $uid $TMP1 |
grep -w $uid $TMP1 |
done < $TMP2 | column |
done < $TMP2 | column |
fi |
fi |
|
|
# Backup the master password file; a special case, the normal backup |
# Backup the master password file; a special case, the normal backup |
|
|
} |
} |
} |
} |
$1 ~ /^d....w/ \ |
$1 ~ /^d....w/ \ |
{ print "Root path directory " $10 " is group writable." } \ |
{ print "Root path directory " $10 " is group writable." } \ |
$1 ~ /^d.......w/ \ |
$1 ~ /^d.......w/ \ |
{ print "Root path directory " $10 " is other writable." }' \ |
{ print "Root path directory " $10 " is other writable." }' \ |
< $TMP1 >> $OUTPUT |
< $TMP1 >> $OUTPUT |
fi |
fi |
done |
done |
|
|
} |
} |
} |
} |
$1 ~ /^d....w/ \ |
$1 ~ /^d....w/ \ |
{ print "Root path directory " $10 " is group writable." } \ |
{ print "Root path directory " $10 " is group writable." } \ |
$1 ~ /^d.......w/ \ |
$1 ~ /^d.......w/ \ |
{ print "Root path directory " $10 " is other writable." }' \ |
{ print "Root path directory " $10 " is other writable." }' \ |
< $TMP1 >> $OUTPUT |
< $TMP1 >> $OUTPUT |
|
|
fi |
fi |