Your Webhosting Questions
Answered by the Webhosting Experts

How to set up daily email alerts for chkrootkit?

Login to your server as root and at the root prompt fire the below command:

root@xxx[~]vi /etc/cron.daily/

Insert the following to the new file:

cd /your_installpath/chkrootkit-0.42b/
./chkrootkit | mail -s “Daily chkrootkit from Servername” [email protected]

1. Replace ‘your_installpath’ with the actual path to where you unpacked Chkrootkit.

2. Change ‘Servername’ to the server which you are running.

3. Change ‘[email protected]’ to your actual email address where the script will mail you.

Save the file.

Change the file permissions
root@xxx[~]chmod 755 /etc/cron.daily/

Now if you like ,you can run a test report manually in SSH, to see how it looks.

root@xxx[~]cd /etc/cron.daily/

You’ll now receive a alert with the report!

Everyday you should receive the alert.

You don’t have to run it manually.

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your account or if you are on the go, please reach out from your valid account email to us here at: [email protected]. We are also available to you through our phone and live chat system 24/7/365.

Tags +