Download and unzip rkhunter
cd /usr/local/src/
tar -zxf rkhunter-1.2.7.tar.gz
cd rkhunter
Install it
./installer.sh or
./installer.sh --layout /usr/local/src --install
Now create a cronjob so it will email you with notifications to the root mailbox
crontab -e
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 Ctrl + x to save.
No comments:
Post a Comment