Modify duplicate user id check to exclude "toor". Any other uid 0

accounts will generate a message with that (those) account names, root, and
toor present in the list.
This commit is contained in:
wrstuden 1999-03-17 02:58:11 +00:00
parent 8ace2247cb
commit d32be9a273
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: security,v 1.35 1999/03/16 06:18:17 fair Exp $
# $NetBSD: security,v 1.36 1999/03/17 02:58:11 wrstuden Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@ -108,7 +108,9 @@ if checkyesno check_passwd; then
column $OUTPUT
fi
< $MPBYUID uniq -d -f 1 | awk '{ print $2 }' > $TMP2
# the corner case of a "toor " account is caught in the invalid character
# test above.
< $MPBYUID egrep -v '^toor ' | uniq -d -f 1 | awk '{ print $2 }' > $TMP2
if [ -s $TMP2 ] ; then
printf "\n$MP has duplicate user id's.\n"
while read uid; do