Package: rkhunter
Version: 1.2.8-4
Severity: normal

When running rkhunter -c, I got the following error messages:
/usr/bin/rkhunter: line 2128: /rkhunter/scripts/check_modules.pl: No
such file or directory
/usr/bin/rkhunter: line 2129: /rkhunter/scripts/check_modules.pl: No
such file or directory
/usr/bin/rkhunter: line 4229: /rkhunter/scripts/showfiles.pl: No such
file or directory

All these errors are the result of using a variable SHAREDIR, which
isn't set. If you look in the /usr/bin/rkhunter script, you see that
there is a check to make sure SHAREDIR is mentioned in
/etc/rkhunter.conf, but there is a bug in the code (line 616).

SHAREDIR=`cat ${CONFIGFILE} | grep 'SHAREDIR=' | sed s/SHAREDIR=//`
if [ "${MYDIR}" = "" ]
  then
    echo "Fatal error: can't find SHAREDIR option in configuration file 
(${CONFIGFILE})"
    exit 1
fi

The first line should be:
MYDIR=`cat ${CONFIGFILE} | grep 'SHAREDIR=' | sed s/SHAREDIR=//`

After this fix, it nicely reports the problem:
Fatal error: can't find SHAREDIR option in configuration file
(/etc/rkhunter.conf)

This problem only occurs when you do not upgrade /etc/rkhunter.conf from
an older version (I still had one which doesn't include the SHAREDIR
variable). And of course the problem is also fixed by just updating your
config file, but rkhunter should report it anyway.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-k7
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages rkhunter depends on:
ii  debconf [debconf 1.5.1                   Debian configuration management sy
ii  file             4.17-1                  Determines file type using "magic"
ii  mailx            1:8.1.2-0.20050715cvs-1 A simple mail user agent
ii  net-tools        1.60-17                 The NET-3 networking toolkit
ii  perl             5.8.8-4                 Larry Wall's Practical Extraction 
ii  wget             1.10.2-1                retrieves files from the web

Versions of packages rkhunter recommends:
ii  libmd5-perl                   2.03-1     backwards-compatible wrapper for D

-- debconf information:
* rkhunter/cron_daily_run: true
* rkhunter/cron_db_update: true


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to