Browse Source

Capitalize 'id' to be consistent with our man pages.

OPENBSD_2_8
aaron 24 years ago
parent
commit
d57c53f78c
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/etc/security

+ 6
- 6
src/etc/security View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: security,v 1.35 2000/04/16 20:46:22 millert Exp $
# $OpenBSD: security,v 1.36 2000/05/26 14:54:17 aaron Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93 # from: @(#)security 8.1 (Berkeley) 6/9/93
# #
@ -53,11 +53,11 @@ awk -F: '{
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"
@ -73,7 +73,7 @@ fi
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
@ -117,7 +117,7 @@ awk -F: '{
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"


Loading…
Cancel
Save