Steps to Installing RKHunter
#cd /usr/local/src
#wget http://nchc.dl.sourceforge.net/project/rkhunter/rkhunter/1.4.0/rkhunter-1.4.0.tar.gz
#tar -zxvf rkhunter-1.4.0.tar.gz
#cd rkhunter-1.4.0
#./installer.sh --layout default --install
#/usr/local/bin/rkhunter --update
#/usr/local/bin/rkhunter --propupd
#rm -Rf /usr/local/src/rkhunter*
#cd
Adding to Daily Cron
#vi /etc/cron.daily/rkhunter.sh
Add the Below text to rkhunter.sh
#!/bin/sh
(
/usr/local/bin/rkhunter --versioncheck
/usr/local/bin/rkhunter --update
/usr/local/bin/rkhunter --cronjob --report-warnings-only
) | /bin/mail -s 'rkhunter Daily Run (PutYourServerNameHere)' your@email.here
Chmod rkhunter.sh to root only
#chmod 700 /etc/cron.daily/rkhunter.sh
Tuesday, 16 October 2012
Installing RKHunter on CentOS 5.x & 6.x
Monday, 15 October 2012
Error while installing CHKROOTKIT on CentOS 6
Error:
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [strings-static] Error 1
Fix:
yum install glibc-static
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [strings-static] Error 1
Fix:
yum install glibc-static
Install CHKROOTKIT on CentOS 5.x & 6.x
Steps to Install CHKROOTKIT on CentOS:
#cd /usr/local/src
#wget http://www.mediafire.com/download/9wj584qjffy9t25/chkrootkit.tar.gz
or
#wget http://www.spenneberg.org/chkrootkit-mirror/files/chkrootkit.tar.gz
#tar -zxvf chkrootkit.tar.gz
#mkdir /usr/local/chkrootkit
#mv /usr/local/src/chkrootkit*/* /usr/local/chkrootkit
#cd /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
Saturday, 13 October 2012
Error in Named
Error: /var/named/dynamic/managed-keys.bind.jnl: create: file not found localhost named[17629]: managed-keys-zone ./IN: sync_keyzone:dns_journal_open -> unexpected error
Fix:
# mkdir /var/named/chroot/var/named/dynamic
# chown named:named /var/named/chroot/var/named/dynamic
Fix:
# mkdir /var/named/chroot/var/named/dynamic
# chown named:named /var/named/chroot/var/named/dynamic
Subscribe to:
Posts (Atom)