Script to install rkhunter on CentOS 6

by Daniel Pham
Published: Updated:

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.sh

You then grant the executable permission to the script.

chmod 700 /home/install.sh

And finally, execute the script.

bash /home/install.sh
Script to install rkhunter on CentOS 6
Execute the script use to install rkhunter on CentOS 6.

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
Script to install rkhunter on CentOS 6
Script complete install rkhunter.

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).

0 0 votes
Article Rating

You may also like

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

0
Would love your thoughts, please comment.x
()
x

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.