RKHunter (Ubuntu 14.04)

by | Oct 23, 2015 | Important, Linux, Server Administration | 0 comments

# Update the Repo's
$ apt-get update

# Install rkhunter
$ apt-get install rkhunter

# Check the version
$ rkhunter --versioncheck

# Update rkhunter if needed
$ rkhunter --update

# Snapshot the systems rootkit status
$ rkhunter --propupd

# Fully scan the system
$ rkhunter -c --enable all --disable none  

# Logscan be found here
$ nano /var/log/rkhunter.log 

# Scan the system but only show the errors and warning
$ rkhunter -c --enable all --disable none --rwo

# Download and paste the config
$ nano /etc/rkhunter.conf

# Install mailutils if not installed
$ apt-get install mailutils

# Check the config
$ rkhunter -C

# Update the rootkit system snapshot 
$ sudo rkhunter --propupd

# Add the rkhunter cron
$ crontab -e
$ 15 04 * * * /usr/bin/rkhunter --cronjob --update --quiet

Download Ubuntu 14.04 RKHunter.Conf

An example rkhunter.conf file used for Ubuntu 14.04 servers

Download
Share This