Installation and configuration of Rkhunter

1. Download rkhunter from using following commands.

cd /usr/local/src


2: Install rkhunter using following commands.

tar -xzvf rkhunter-1.4.2.tar.gz
cd rkhunter-1.4.2
./ --layout default --install


3: Update rkhunter using following commands.

/usr/local/bin/rkhunter --update
/usr/local/bin/rkhunter --propupd


4: Set up cron job & email alerts

Open /etc/cron.daily/ using "vi" command

vi /etc/cron.daily/

Then add the following lines of code to the above file

/usr/local/bin/rkhunter --versioncheck
/usr/local/bin/rkhunter --update
/usr/local/bin/rkhunter --cronjob --report-warnings-only
) | /bin/mail -s 'rkhunter Daily Run - $HOSTNAME'

Note: replace with your email address.
Run following command to set correct permission to above script

chmod 755 /etc/cron.daily/


5: Manual scanning can be done using following command

rkhunter --check

Result of above scan be checked from the log file: /var/log/rkhunter.log

Last update:
2015-10-13 04:38
Bytehouse Technical Support
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category