summaryrefslogtreecommitdiffstats
path: root/etc/security
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2000-12-17 08:16:06 +0000
committerdougb <dougb@FreeBSD.org>2000-12-17 08:16:06 +0000
commit1e8ecc617bb05e72dce649d99982f0fbe0ad64e1 (patch)
tree8bb5bbce19114a1cdb5dd43110cd1aab487c45d7 /etc/security
parentd8586c3f20a1e9e2925a2cdb240369fa29d0630e (diff)
downloadFreeBSD-src-1e8ecc617bb05e72dce649d99982f0fbe0ad64e1.zip
FreeBSD-src-1e8ecc617bb05e72dce649d99982f0fbe0ad64e1.tar.gz
Apply a more consistent style to the echo statements in /etc/ scripts.
* Put quotes around each line * Single quotes for lines with no variable interpolation * Double quotes if there is * Capitalize each word that begins a line * Make echo -n 'Doing foo:' ... echo '.' more of a standard No functionality changes
Diffstat (limited to 'etc/security')
-rw-r--r--etc/security16
1 files changed, 8 insertions, 8 deletions
diff --git a/etc/security b/etc/security
index ef4c5ba..5f4e7f8 100644
--- a/etc/security
+++ b/etc/security
@@ -62,7 +62,7 @@ host=`hostname`
umask 027
-echo "checking setuid files and devices:"
+echo 'Checking setuid files and devices:'
# Don't have ncheck, but this does the equivalent of the commented out block.
# Note that one of the original problems, the possibility of overrunning
@@ -81,7 +81,7 @@ done | xargs -0 -n 20 ls -liTd | sort +10 > ${TMP}
if [ ! -f ${LOG}/setuid.today ]; then
[ $rc -lt 1 ] && rc=1
separator
- echo "no ${LOG}/setuid.today"
+ echo "No ${LOG}/setuid.today"
cp ${TMP} ${LOG}/setuid.today || rc=3
fi
@@ -101,7 +101,7 @@ if mount -p | $cmd > $TMP; then
if [ ! -f $LOG/mount.today ]; then
[ $rc -lt 1 ] && rc=1
separator
- echo "no $LOG/mount.today"
+ echo "No $LOG/mount.today"
cp $TMP $LOG/mount.today || rc=3
fi
if ! cmp $LOG/mount.today $TMP >/dev/null 2>&1; then
@@ -115,7 +115,7 @@ if mount -p | $cmd > $TMP; then
fi
separator
-echo "checking for uids of 0:"
+echo 'Checking for uids of 0:'
n=$(awk -F: '$3==0 {print $1,$3}' /etc/master.passwd |
tee /dev/stderr |
sed -e '/^root 0$/d' -e '/^toor 0$/d' |
@@ -123,7 +123,7 @@ n=$(awk -F: '$3==0 {print $1,$3}' /etc/master.passwd |
[ $n -gt 0 -a $rc -lt 1 ] && rc=1
separator
-echo "checking for passwordless accounts:"
+echo 'Checking for passwordless accounts:'
n=$(awk -F: 'NF > 1 && $1 !~ /^[#+-]/ && $2=="" {print $0}' /etc/master.passwd |
tee /dev/stderr | wc -l)
[ $n -gt 0 -a $rc -lt 1 ] && rc=1
@@ -134,7 +134,7 @@ if ipfw -a l 2>/dev/null | egrep "deny|reset|unreach" > ${TMP}; then
if [ ! -f ${LOG}/ipfw.today ]; then
[ $rc -lt 1 ] && rc=1
separator
- echo "no ${LOG}/ipfw.today"
+ echo "No ${LOG}/ipfw.today"
cp ${TMP} ${LOG}/ipfw.today || rc=3
fi
@@ -157,7 +157,7 @@ if [ $? -eq 0 -a "${IPFW_LOG_LIMIT}" -ne 0 ]; then
if [ -s "${TMP}" ]; then
[ $rc -lt 1 ] && rc=1
separator
- echo "ipfw log limit reached:"
+ echo 'ipfw log limit reached:'
cat ${TMP}
fi
fi
@@ -168,7 +168,7 @@ if dmesg 2>/dev/null > ${TMP}; then
if [ ! -f ${LOG}/dmesg.today ]; then
[ $rc -lt 1 ] && rc=1
separator
- echo "no ${LOG}/dmesg.today"
+ echo "No ${LOG}/dmesg.today"
cp ${TMP} ${LOG}/dmesg.today || rc=3
fi
OpenPOWER on IntegriCloud