• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.
 

Recommended Providers

Fully Managed WordPress Hosting
lc_banner_leadgen_3
Fully Managed WordPress Hosting

WordPress Theme

Divi WordPress Theme
WPZOOM

Forum Membership

Forum Membership

Rkhunter installation Guide

Started by Kevin, November 26, 2008, 10:48:47 AM

Kevin

Rkhunter is a very useful tool that is used to check for trojans, rootkits, and other security problems. It is highly recommended to install it on your Linux base server. Below is the guide line to install it:

[1] Download Rkhunter from the below link:
http://sourceforge.net/projects/rkhunter/
[2] Untar the installation file using the below command:
tar -zxvf downloaded_file_name
[3] Go to Rkhunter using the below command:
cd rkhunter-version_numberJust type ls and you will get the name of rkhunter  directory.

[4] Install it using the following command:
./installer.sh
Now you can run it manually using the below command:
/usr/local/bin/rkhunter -c
You can setup in daily cron to run it automatically. To add it in daily cron follow the below steps:

pico /etc/cron.daily/rkhunter.sh
Now add the following line:
#!/bin/bash
(/usr/local/bin/rkhunter -c --cronjob 2>&1 | mail -s "Rkhunter Report" youremail@domain.com)

rkhunter.sh file should have execute permission. You can do it using

chmod +x /etc/cron.daily/rkhunter.sh
Regards,

Kevin