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>
This commit is contained in:
sheldonh 2000-04-06 10:46:50 +00:00
parent ca88d5bd7b
commit 21655c5f18

View File

@ -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