#!/bin/bash
find / -perm -4000 -o -perm -2000 > /root/suid_temp
for i in $(cat /root/suid_temp)
do
grep $i /root/suid.log > /dev/null
if [ "$?" != "0" ];then
echo "$i wrong suid add now" >> /root/suid.wrong.log_$(date +%F)
fi
done