ports/153024: security/rkhunter should not overwrite /usr/local/etc/rkhunter.conf

Sofian Brabez sbrabez at gmail.com
Tue Jan 11 21:40:11 UTC 2011


The following reply was made to PR ports/153024; it has been noted by GNATS.

From: Sofian Brabez <sbrabez at gmail.com>
To: bug-followup at FreeBSD.org, Trond.Endrestol at ximalas.info
Cc:  
Subject: Re: ports/153024: security/rkhunter should not overwrite /usr/local/etc/rkhunter.conf
Date: Tue, 11 Jan 2011 22:30:26 +0100

 Hi Trond,
 
 Normally security/rkhunter during an update renamed your old
 configuration with the following scheme :
 ${RKHINST_ETC_DIR}rkhunter.conf`date +%Y%m%d%H%M%S`, so your old
 configuration is never delete or overwrite.
 
 By default RKHINST_ETC_DIR is set to /usr/local/etc/ folder.
 
 You just have to renamed it to keep your old configuration, it's done
 like that because rkhunter handle internally the update. If you want
 to know more about this, you could check the source code into
 installer.sh file
 
 For example, below I've updated it and I got two files, my old created
 the 27 November 2010 and my new of 11 January 2011:
 
 (root at freebsd81:/tmp/) # stat /usr/local/etc/rkhunter.conf.20101127023538
 73 391826 -rw-r----- 1 root wheel 1599104 37308 "Jan 11 23:11:10 2011"
 "Nov 27 02:35:38 2010" "Nov 27 02:35:38 2010" "Nov 27 02:35:38 2010"
 16384 76 0 /usr/local/etc/rkhunter.conf.20101127023538
 (root at freebsd81:/tmp/rkhunter) # ls -l /usr/local/etc/rkhunter*
 -rw-r-----  1 root  wheel  37308 Jan 11 23:10 /usr/local/etc/rkhunter.conf
 -rw-r-----  1 root  wheel  37308 Nov 27 02:35
 /usr/local/etc/rkhunter.conf.20101127023538
 
 Sorry for my late answer.
 
 Regards
 
 -- 
 sbz



More information about the freebsd-ports-bugs mailing list