- cd /usr/local/src
- wget https://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.6/rkhunter-1.4.6.tar.gz
- tar -zxvf rkhunter-1.4.6.tar.gz
- cd rkhunter-*
- ./installer.sh --layout default --install
- rkhunter --update
- rkhunter -c
- nano -w /etc/rkhunter.conf
Search for MAIL-ON-WARNING, then add an email address. api@netway.ezyadmin.com
- nano -w /etc/cron.daily/rkhunter.sh
#!/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 (server.systemnetway.com)' api@netway.ezyadmin.com
- chmod 700 /etc/cron.daily/rkhunter.sh