Find only set[gu]id files and devices, like old ncheck(1).

This commit is contained in:
mycroft 1993-12-15 07:07:36 +00:00
parent 93855d31e9
commit cb4c5af110
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ set $MP
ls -lgT `while test $# -ge 1; do
mount=$1
shift
find $mount -xdev \( -perm -u+s -or -perm -g+s \) | sort
find $mount -xdev \( \( -type f \( -perm -u+s -or -perm -g+s \) \) -or -type b -or -type c \) | sort
done` > $TMP
#MP=`mount -t ufs | sed 's;/dev/;&r;' | awk '{ print $1 " " $3 }'`
@ -37,7 +37,7 @@ done` > $TMP
if cmp $LOG/setuid.today $TMP >/dev/null; then :; else
echo "$host setuid/device diffs:"
diff $LOG/setuid.today $TMP
diff -w $LOG/setuid.today $TMP
mv $LOG/setuid.today $LOG/setuid.yesterday
mv $TMP $LOG/setuid.today
fi