Install Rkhunter on CentOS/Linux

Rkhunter is a helpful tool that is compiled on UNIX platform to identify rootkits on  a Linux system. It will also identify backdoor and scans hidden files on server.

 

You can follow the steps mentioned below for installing and configuring Rkhunter on your server.

Use Wget command to download it on your systems:

cd /usr/local/src

wget http://sourceforge.net/projects/rkhunter/files/rkhunter/1.4.2/rkhunter-1.4.2.tar.gz

Once the latest version is downloaded , run the following commands as a root user to install it.

tar xzvf rkhunter*

Once the process is completed, get into the Rkhunter-1.4.2 folder using below command:

cd rkhunter*

Now install Rkhunter using the following command:

./installer.sh --install

Once the installation done update the Rkhunter by running the following command:

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

you can run Rkhunter using the command:

rkhunter --check

You can check the results into log file generated under /var/log/rkhunter.log

For more details and options you can check the following command:

rkhunter --help