Homepage: http://www.rootkit.nl
http://www.rootkit.nl/projects/rootkit_hunter.html
Step 1: Downloading, Installing and Updateing
cd /tmp wget http://sourceforge.net/projects/rkhunter/files/latest/rkhunter-1.4.0.tar.gz tar -zxvf rkhunter-1.4.0.tar.gz cd rkhunter-1.4.0 ./installer.sh --layout default --install /usr/local/bin/rkhunter --update /usr/local/bin/rkhunter --propupd
Step 2: Adding daily cron job
Step 2.1: Create run-file
nano -w /etc/cron.daily/rkhunter.sh
Step 2.2: Add this text to 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 (PutYourServerNameHere)' your@email.here
Step 2.3: Chmod rkhunter.sh to root only
chmod 700 /etc/cron.daily/rkhunter.sh