Download and unzip rkhunter
-----command-----
cd /usr/local/src/
wget http://downloads.rootkit.nl/rkhunter-1.2.8.tar.gz
tar -zxf rkhunter-1.2.8.tar.gz
cd rkhunter
-----command-----
Install it
-----command-----
./installer.sh
-----command-----
Now create a cronjob so it will email you with notifications to the root mailbox:
-----command-----
crontab -e
-----command-----
Now the crontab is going to be created. The first line is an update function
so that you can be assured your rkhunter has the latest rules before it scans
your system. The second line will run the actual scan an email root the results.
At the bottom add the following line
10 0 * * * /usr/local/bin/rkhunter --update > /dev/null 2>&1
25 0 * * * /usr/local/bin/rkhunter -c --nocolors --cronjob --report-mode --createlogfile
--skip-keypress --quiet
Press control x to save


Add new comment