Package: rkhunter
Version: 1.3.4-2
Severity: serious

I just did an upgrade and this is what I got on the console:

Setting up rkhunter (1.3.4-2) ...
Installing new version of config file /etc/rkhunter.conf ...
chmod: cannot access `/var/lib/rkhunter/{db,tmp}': No such file or directory
dpkg: error processing rkhunter (--configure):
 subprocess post-installation script returned error exit status 1

The directory does exist:

$ ls -ld /var/lib/rkhunter/
drwxr-xr-x. 4 root root 4096 2006-09-27 00:57 /var/lib/rkhunter/

$ ls -l /var/lib/rkhunter/
drwxr-xr-x. 3 root root 4096 2009-03-09 11:40 db
drwxr-xr-x. 2 root root 4096 2009-03-07 06:28 tmp

Looks like this line in the postinst doesn't work:

        chmod 750 /var/lib/rkhunter/{db,tmp}

I suggest changing it to:

        chmod 750 /var/lib/rkhunter/db
        chmod 750 /var/lib/rkhunter/tmp

which is probably the easiest solution. I guess the '{db,tmp}' only
works with '/bin/bash' but not portably with '/bin/sh' and bashisms
should be avoided in scripts.


HTH, Uwe.
-- 
http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to