summaryrefslogtreecommitdiffstats
path: root/etc/security
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-06-23 14:23:54 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-06-23 14:23:54 +0000
commitfeb3b0d86961b0308f428b619f53e6f6dfb182e3 (patch)
treee4c79b0b94f0a3eaf66a4dea29e8c5afe6e2cace /etc/security
parent1e7459a41eafbbc405a2be44f3a65b55d25dae43 (diff)
downloadFreeBSD-src-feb3b0d86961b0308f428b619f53e6f6dfb182e3.zip
FreeBSD-src-feb3b0d86961b0308f428b619f53e6f6dfb182e3.tar.gz
Ignore NIS accounts when checking for passwordless accounts.
PR: 9639 Reported by: Bob Willcox <bob@pmr.com> Submitted by: des
Diffstat (limited to 'etc/security')
-rw-r--r--etc/security4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/security b/etc/security
index 41c3e1d..f3bb0c4 100644
--- a/etc/security
+++ b/etc/security
@@ -1,7 +1,7 @@
#!/bin/sh -
#
# @(#)security 5.3 (Berkeley) 5/28/91
-# $Id: security,v 1.28 1999/01/01 17:37:33 billf Exp $
+# $Id: security,v 1.29 1999/01/10 11:18:59 danny Exp $
#
PATH=/sbin:/bin:/usr/bin
LC_ALL=C; export LC_ALL
@@ -54,7 +54,7 @@ awk -F: '$3==0 {print $1,$3}' /etc/master.passwd
separator
echo "checking for passwordless accounts:"
-awk -F: '$2=="" {print $0}' /etc/master.passwd
+awk -F: '$1 !~ /^\+/ && $2=="" {print $0}' /etc/master.passwd
# show denied packets
if ipfw -a l 2>/dev/null | egrep "deny|reset|unreach" > $TMP; then
OpenPOWER on IntegriCloud