Re Upgrading 

I don't know if this is useful to anyone but I ran this on my Ubuntu server to 
update from 1.3.8 to 1.4.2 as a shell script in one go.

nano rkhunter-upgrade.sh
pasted in below and then ran it with "sh rkhunter-upgrade.sh"

#!/bin/sh
#script to upgrade rkhunter

mkdir /rkhunter-install
cd rkhunter-install
#Download latest version
wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.2/rkhunter-$
tar xvfz rkhunter-1.4.2.tar.gz
cd rkhunter-1.4.2
sudo ./installer.sh --install
#There is a need to clear the cache
hash -r

# Note - edit the /etc/rkhunter.conf and set  PKGMGR=DPKG from PKGMGR=NONE in 
debian - ubuntu systems
sed -i 's/#PKGMGR=NONE/PKGMGR=DPKG/' /etc/rkhunter.conf
# We used forced-commands-only but most environs the standard is to set to no
# sed -i 's/ALLOW_SSH_ROOT_USER=no/ALLOW_SSH_ROOT_USER=forced-commands-only/' 
/etc/rkhunter.conf


# Additions to the rkhunter.conf file.
echo "# Custom Rules Added" >> /etc/rkhunter.conf
echo "ALLOWHIDDENDIR=/dev/.udev" >> /etc/rkhunter.conf
echo "ALLOWHIDDENDIR=/etc/.java" >> /etc/rkhunter.conf
echo "ALLOWHIDDENFILE=/dev/.initramfs" >> /etc/rkhunter.conf
echo "ALLOWHIDDENFILE=/dev/.blkid.tab" >> /etc/rkhunter.conf
echo "ALLOWHIDDENFILE=/dev/.blkid.tab.old" >> /etc/rkhunter.conf
echo "ALLOWDEVFILE=/dev/.udev/rules.d/root.rules" >> /etc/rkhunter.conf

sudo rkhunter --versioncheck
sudo rkhunter --update --propupd
sudo rkhunter --checkall




Dale Carter
Managing Director
www.gtp-icommerce.com
www.gtphub.com  (Time, Projects, Sales, CRM, E Marketing)
+61 1300 856 533
+61 0411 352 766



-----Original Message-----
From: John Horne [mailto:john.ho...@plymouth.ac.uk] 
Sent: Tuesday, 21 July 2015 11:22 PM
To: RkhunterList
Subject: [Rkhunter-users] Update problems - sourceforge

FYI -

Running 'rkhunter --update' may fail. It seems that sourceforge are moving 
things around at the moment.



John.

-- 
John Horne                   Tel: +44 (0)1752 587287
Plymouth University, UK


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need 
to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Rkhunter-users mailing list
Rkhunter-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkhunter-users

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Rkhunter-users mailing list
Rkhunter-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkhunter-users

Reply via email to