To install the latest version of Rkhunter on your server, execute the following commands:
wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.0/rkhunter-1.4.0.tar.gz tar xzfv rkhunter-1.4.0.tar.gz cd rkhunter-1.4.0 ./installer.sh --install --layout default rkhunter --update rkhunter --propupd
Use the following command to perform a test scan on the local system:
Set up a daily cron job on your Linux VPS:
#!/bin/sh ( rkhunter --versioncheck rkhunter --update rkhunter -c --cronjob ) | mail -s 'rkhunter Daily Check' firstname.lastname@example.org
Do not forget to replace ‘email@example.com’ with your email address.
Execute the following command to make the script executable:
chmod +x /etc/cron.daily/rkhunter-cron.sh
That’s it! An email with the results of Rkhunter scan will be sent on your email address on a daily basis.
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install Rkhunter for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.