From d32be9a27394418cfddeb15d3271114f638bcfa5 Mon Sep 17 00:00:00 2001 From: wrstuden Date: Wed, 17 Mar 1999 02:58:11 +0000 Subject: [PATCH] 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. --- etc/security | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/etc/security b/etc/security index ab2d06b347df..c75ee56bf0cb 100644 --- a/etc/security +++ b/etc/security @@ -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