Do not misinterpret blank and comment lines as passwordless accounts.

PR:	13909
Submitted by:	Peter Jeremy <peter.jeremy@alcatel.com.au>
This commit is contained in:
Sheldon Hearn 1999-10-06 10:29:33 +00:00
parent 04bf7dcfeb
commit a0468d95ed

View File

@ -55,7 +55,7 @@ awk -F: '$3==0 {print $1,$3}' /etc/master.passwd
separator
echo "checking for passwordless accounts:"
awk -F: '$1 !~ /^\+/ && $2=="" {print $0}' /etc/master.passwd
awk -F: 'NF > 1 && $1 !~ /^[#+]/ && $2=="" {print $0}' /etc/master.passwd
# Show denied packets
#