summaryrefslogtreecommitdiffstats
path: root/etc/security
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-04-06 10:46:50 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-04-06 10:46:50 +0000
commit21655c5f1820c220d93c189cd22adfabd7f09247 (patch)
tree51ab31af72a2065a5857b8ee8d2489b42e7a5264 /etc/security
parentca88d5bd7be7a64515fa91476a1c862a909c4476 (diff)
downloadFreeBSD-src-21655c5f1820c220d93c189cd22adfabd7f09247.zip
FreeBSD-src-21655c5f1820c220d93c189cd22adfabd7f09247.tar.gz
Add a step for showing changes in the way filesystems are mounted
today from the way they were mounted yesterday. PR: 17155 Submitted by: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
Diffstat (limited to 'etc/security')
-rw-r--r--etc/security17
1 files changed, 17 insertions, 0 deletions
diff --git a/etc/security b/etc/security
index c786713..f6adcd7 100644
--- a/etc/security
+++ b/etc/security
@@ -51,6 +51,23 @@ if cmp ${LOG}/setuid.today ${TMP} >/dev/null; then :; else
mv ${TMP} ${LOG}/setuid.today
fi
+# Show changes in the way filesystems are mounted
+#
+if mount -p > $TMP; then
+ if [ ! -f $LOG/mount.today ]; then
+ separator
+ echo "no $LOG/mount.today"
+ cp $TMP $LOG/mount.today
+ fi
+ if cmp $LOG/mount.today $TMP >/dev/null 2>&1; then :; else
+ separator
+ echo "$host changes in mounted filesystems:"
+ diff -b $LOG/mount.today $TMP
+ mv $LOG/mount.today $LOG/mount.yesterday
+ mv $TMP $LOG/mount.today
+ fi
+fi
+
separator
echo "checking for uids of 0:"
awk -F: '$3==0 {print $1,$3}' /etc/master.passwd
OpenPOWER on IntegriCloud