Ignore NIS accounts when checking for passwordless accounts.
PR: 9639 Reported by: Bob Willcox <bob@pmr.com> Submitted by: des
This commit is contained in:
parent
d41ebb5068
commit
450f806ba3
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh -
|
#!/bin/sh -
|
||||||
#
|
#
|
||||||
# @(#)security 5.3 (Berkeley) 5/28/91
|
# @(#)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
|
PATH=/sbin:/bin:/usr/bin
|
||||||
LC_ALL=C; export LC_ALL
|
LC_ALL=C; export LC_ALL
|
||||||
@ -54,7 +54,7 @@ awk -F: '$3==0 {print $1,$3}' /etc/master.passwd
|
|||||||
|
|
||||||
separator
|
separator
|
||||||
echo "checking for passwordless accounts:"
|
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
|
# show denied packets
|
||||||
if ipfw -a l 2>/dev/null | egrep "deny|reset|unreach" > $TMP; then
|
if ipfw -a l 2>/dev/null | egrep "deny|reset|unreach" > $TMP; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user