Steps to Install CHKROOTKIT on CentOS servers:
#cd /usr/local/src
#wget http://www.spenneberg.org/chkrootkit-mirror/files/chkrootkit.tar.gz
#tar -zxvf chkrootkit.tar.gz
#mv /usr/local/src/chkrootkit*/* /usr/local/chkrootkit
#make sense
Adding CHKROOTKIT to Daily Cron
#vi /etc/cron.daily/chkrootkit.sh
Add this text to the chkrootkit.sh file
#!/bin/sh
(
/usr/local/chkrootkit/chkrootkit
) | /bin/mail -s 'CHROOTKIT Daily Run (PutServerNameHere)' your@email.here
#chmod 700 /etc/cron.daily/chkrootkit.sh
If you get following error in Centos 6 server.
====
Error:
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [strings-static] Error 1
====
You can use the below command to fix it:
====
yum install glibc-static
====
Kool :)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.