Table of Contents
How to install rkhunter on CentOS 6? rkhunter is a small program for Unix / Linux has the ability to detect rootkits. This article will give you the script to install rkhunter on CentOS 6.
About the script
I wrote this script to simplify the installation of rkhunter on CentOS 6. Besides, this is also a fast archive source.
This script has 2 main parts:
- Check if the current user is root. This script needs root user to install.
- Install Rootkit Hunter, update database and system file properties.
Version installed:
- OS: CentOS 6.9 (Final) 64 bit
- Rootkit Hunter version 1.4.6
Use the script to install rkhunter on CentOS 6
Now, to use this script, you first need to download the script with the following command.
wget https://gitlab.com/Danny_Pham/WriteBash.com/raw/master/Install/08-Script_install_rkhunter_on_CentOS_6.sh -O /home/install.shYou then grant the executable permission to the script.
chmod 700 /home/install.shAnd finally, execute the script.
bash /home/install.sh
Check the result
After the script completes the installation (may take a few minutes). You can use the following command to perform manual scanning rootkits.
rkhunter -c
If your installation is finished as image above, then you have successfully installed this software on CentOS 6. In the next article, I will give you a script that will scan rootkits with rkhunter automatically.
(This is an article from my old blog that has been inactive for a long time, I don’t want to throw it away so I will keep it and hope it helps someone).