summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-10-06 10:29:33 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-10-06 10:29:33 +0000
commit4d084d0fc60643dedb70beff2726fe8d9b3f467a (patch)
tree023e08e8f4803aecb57b68d191749095a836c5e1 /etc
parent3fe86c67fed4305f82703d63da9af518f6a59e4c (diff)
downloadFreeBSD-src-4d084d0fc60643dedb70beff2726fe8d9b3f467a.zip
FreeBSD-src-4d084d0fc60643dedb70beff2726fe8d9b3f467a.tar.gz
Do not misinterpret blank and comment lines as passwordless accounts.
PR: 13909 Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
Diffstat (limited to 'etc')
-rw-r--r--etc/security2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/security b/etc/security
index ac70d0c..7570cd1 100644
--- a/etc/security
+++ b/etc/security
@@ -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
#
OpenPOWER on IntegriCloud