How to Configure Email Alerts for Rootkit Hunter (Rkhunter)
We have already discussed about how to install the Rootkit Hunter in Linux operating system. Now set up email alert to you daily.
Create a shell file in cron.daily
Add the following code:
/usr/local/bin/rkhunter --cronjob --report-warnings-only
) | /bin/mail -s 'rkhunter Daily Run (your server name)' email@example.com
Then, file permission change to be executable,
Finally, restart your cronjob service.