cPanel & WHM – Security – Install RKhunter – Part 3

25

How to install Rkhunter cPanel & WHM security

1- cd /usr/local/src
2- wget https://excellmedia.dl.sourceforge.net/project/rkhunter/rkhunter/1.4.6/rkhunter-1.4.6.tar.gz
3- tar -zxvf rkhunter-1.4.6.tar.gz
4- cd rkhunter-*
5- ./installer.sh --layout default --install


6- rkhunter --versioncheck
7- rkhunter --update
8- rkhunter --propupd
9- nano /etc/cron.daily/rkhunter.sh
===============

#!/bin/bash
rm -rf /usr/local/src/SCAN
mkdir /usr/local/src/SCAN
SCAN=/usr/local/src/SCAN
cd $SCAN
/usr/local/bin/rkhunter -c --sk -q --summary > $SCAN/scan-rkhunter.log
sed -n '/Rootkit checks/,/Suspect applications/p' $SCAN/scan-rkhunter.log | mail -s "Rkhunter Scan Report" [email protected]
===============

10- chmod +x /etc/cron.daily/rkhunter.sh

Leave A Reply

Your email address will not be published.