To install RkHunter, please follow the steps as below:
# cd /tmp
# wget http://ncu.dl.sourceforge.net/project/rkhunter/rkhunter/1.4.0/rkhunter-1.4.0.tar.gz
# tar -xvf rkhunter-1.4.0.tar.gz
# cd rkhunter-1.4.0
# ./installer.sh --layout default --install
# /usr/local/bin/rkhunter --update
# /usr/local/bin/rkhunter --propupd
# nano /etc/cron.daily/rkhunter.sh
Add below libes in rkhunter.sh file and replace “YourServerNameHere” with your “Server Name” and “your@email.com” with your own “Email Id“.
#!/bin/sh
(
/usr/local/bin/rkhunter --versioncheck
/usr/local/bin/rkhunter --update
/usr/local/bin/rkhunter --cronjob --report-warnings-only
) | /bin/mail -s 'rkhunter Daily Run (servername)' youremail@domain.com
Set execute permission on the file.
# chmod 755 /etc/cron.daily/rkhunter.sh
To scan the entire file system, run the Rkhunter as a root user.
# rkhunter --check
The above command will generate log file under /var/log/rkhunter.log with the check results. To get more information use below command:
# rkhunter --help
Most Popular Articles
What is dedicated server?
Unlike normal hosting plans, which put many customers' accounts on a single server, a Dedicated...
What is Dedicated Hosting Service?
A dedicated hosting service, dedicated server, or is a type of internet hosting in which the...
Can I purchase more bandwidth?
Yes, you can purchase more bandwidth, for more informaion please contact our support.
What is the purpose of Cloud Linux?
Cloud linux provide more advanced features in shared hosting environment that mentioned below:...
How to uninstall CloudLinux and CageFS
Please make sure to remove CageFS before attempting Cloudlinux uninstallation.Below command will...