aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>1999-06-23 14:23:54 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>1999-06-23 14:23:54 +0000
commit450f806ba317b121106a91b7ef4efc0a3b1bc56b (patch)
treef7a6ed71a0a10e9dc763b89dbceee595492e28ee /etc
parentd41ebb506821003231db1b5852cd06ca45537fab (diff)
downloadsrc-450f806ba317b121106a91b7ef4efc0a3b1bc56b.tar.gz
src-450f806ba317b121106a91b7ef4efc0a3b1bc56b.zip
Ignore NIS accounts when checking for passwordless accounts.
PR: 9639 Reported by: Bob Willcox <bob@pmr.com> Submitted by: des
Notes
Notes: svn path=/head/; revision=48138
Diffstat (limited to 'etc')
-rw-r--r--etc/security4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/security b/etc/security
index 41c3e1d09cf2..f3bb0c492d69 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