Monday 15 July 2013

Installing checkrootkit on Centos 5 and 6 servers

Steps to Install CHKROOTKIT on CentOS servers:

#cd /usr/local/src
#tar -zxvf chkrootkit.tar.gz
#mv /usr/local/src/chkrootkit*/* /usr/local/chkrootkit
#make sense

Adding CHKROOTKIT to Daily Cron
#vi /etc/cron.daily/

Add this text to the file
) | /bin/mail -s 'CHROOTKIT Daily Run (PutServerNameHere)'
#chmod 700 /etc/cron.daily/
If you get following error in Centos 6 server.

/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.