summaryrefslogtreecommitdiffstats
path: root/etc/security
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-08-11 08:48:54 +0000
committerdes <des@FreeBSD.org>1998-08-11 08:48:54 +0000
commitee72d83db38fb91fe8e71006210a1e5fe9cec5b3 (patch)
treedbb2bc78b306d83d9eda94ed8ccc645e95e5bc14 /etc/security
parent34546057514cc9ed167e922c0d44de3874e22f8f (diff)
downloadFreeBSD-src-ee72d83db38fb91fe8e71006210a1e5fe9cec5b3.zip
FreeBSD-src-ee72d83db38fb91fe8e71006210a1e5fe9cec5b3.tar.gz
Make /etc/security bitch about passwordless accounts.
Use awk -F: rather than 'BEGIN {FS=":"}'
Diffstat (limited to 'etc/security')
-rw-r--r--etc/security8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/security b/etc/security
index ad7cc80..ec62a55 100644
--- a/etc/security
+++ b/etc/security
@@ -1,7 +1,7 @@
#!/bin/sh -
#
# @(#)security 5.3 (Berkeley) 5/28/91
-# $Id: security,v 1.24 1998/06/27 11:13:59 andreas Exp $
+# $Id: security,v 1.25 1998/07/08 22:42:08 alex Exp $
#
PATH=/sbin:/bin:/usr/bin
LC_ALL=C; export LC_ALL
@@ -50,7 +50,11 @@ fi
separator
echo "checking for uids of 0:"
-awk 'BEGIN {FS=":"} $3==0 {print $1,$3}' /etc/master.passwd
+awk -F: '$3==0 {print $1,$3}' /etc/master.passwd
+
+separator
+echo "checking for paswordless accounts:"
+awk -F: '$2=="" {print $0}' /etc/master.passwd
# show denied packets
if ipfw -a l 2>/dev/null | egrep "deny|reset|unreach" > $TMP; then
OpenPOWER on IntegriCloud