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:
parent
04bf7dcfeb
commit
a0468d95ed
@ -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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user