# emerge chkrootkit
# vi /root/check_chkrootkit.sh
--------------------------------------------------------------------------------
#!/bin/bash
chk=`/usr/sbin/chkrootkit`
if [ -n "$chk" ] ;then
echo $chk | mail -s "Javaya SYSTEM Chkrootkit Result " <MAIL-ADDR>
echo Finished
fi
--------------------------------------------------------------------------------
# chown 700 /root/check_chkrootkit.sh
# vi /etc/crontab
--------------------------------------------------------------------------------
00 4 * * * root /root/scripts/check_chkrootkit.sh
--------------------------------------------------------------------------------
댓글 없음:
댓글 쓰기