From 39e0dbd5fb4f50bb9016fc6d8fd0b067ca4a91e2 Mon Sep 17 00:00:00 2001 From: Sheldon Hearn Date: Thu, 6 Apr 2000 10:46:50 +0000 Subject: [PATCH] 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" --- etc/security | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/etc/security b/etc/security index c78671382f93..f6adcd742aff 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