2011년 8월 2일 화요일

Gentoo Linux에 chkrootkit 설치 및 crontab 등록



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

댓글 없음:

댓글 쓰기