RKHunter Install

Source: http://forums.cpanel.net/showpost.php?p=211290&postcount=102

1. Login to your server via SSH as root.

Then Type: cd /usr/local/src/

2. Download RKHunter latest version (check for latest here: http://sourceforge.net/projects/rkhunter/ )

3. tar -xzvf rkhunter-1.3.2.tar.gz

4. cd rkhunter

5. ./installer.sh --layout default --install

6. rkhunter --propupd

7. rkhunter --update

8. rkhunter --check

9. Setup RKHunter to e-mail you you daily scan reports.

vi /etc/cron.daily/rkhunter.sh

Add The Following:

(/usr/local/bin/rkhunter -c --cronjob 2>&1 | mail -s "RKhunter Scan Details" replace-this@with-your-email.com)

or rather

=========== /etc/cron.daily/rkhunter ====================
/usr/local/bin/rkhunter --versioncheck
/usr/local/bin/rkhunter --update
/usr/local/bin/rkhunter --cronjob --report-warnings-only
) | /bin/mail -s 'rkhunter Daily Run' replace-this@with-your-email.com


Tags: Linux security howto