Package: clamav-freshclam
Version: 0.91.2-4
Severity: normal

Whenever clamav-freshclam updates my virus definition files, I get the following
error message the next time I try to run clamscan as a normal user:

$ clamscan file_to_scan
LibClamAV Error: cli_load(): Can't open file 
/var/lib/clamav//daily.inc/daily.cfg
ERROR: Unable to open file or directory

# ls -l /var/lib/clamav/
drwxr-xr-x 2 clamav clamav  227 2007-12-17 18:00 daily.inc
drwx------ 2 clamav clamav  124 2007-12-17 18:00 main.inc
-rw------- 1 clamav clamav 1560 2007-12-17 18:37 mirrors.dat

The permissions on main.inc have been reset to only accessible by clamav user.

# ls -l /var/lib/clamav/main.inc/
-rw-r--r-- 1 clamav clamav    17992 2007-12-09 09:36 COPYING
-rw------- 1 clamav clamav  4735470 2007-12-09 09:39 main.db
-rw-r--r-- 1 clamav clamav     3881 2007-12-09 09:39 main.fp
-rw-r--r-- 1 clamav clamav   648469 2007-12-09 09:39 main.hdb
-rw------- 1 clamav clamav      318 2007-12-09 09:39 main.info
-rw------- 1 clamav clamav  4335069 2007-12-09 09:39 main.mdb
-rw------- 1 clamav clamav 14575772 2007-12-09 09:39 main.ndb
-rw-r--r-- 1 clamav clamav      217 2007-12-09 09:36 main.zmd

# ls -l /var/lib/clamav/daily.inc/
-rw-r--r-- 1 clamav clamav  17992 2007-09-22 09:24 COPYING
-rw------- 1 clamav clamav     74 2007-12-08 17:14 daily.cfg
-rw-r--r-- 1 clamav clamav  25911 2007-12-09 10:40 daily.db
-rw------- 1 clamav clamav   3881 2007-12-09 10:40 daily.fp
-rw------- 1 clamav clamav   2202 2007-12-16 16:36 daily.hdb
-rw-r--r-- 1 clamav clamav   1116 2007-11-21 01:38 daily.hdu
-rw------- 1 clamav clamav    585 2007-12-17 17:37 daily.info
-rw------- 1 clamav clamav 433594 2007-12-17 17:37 daily.mdb
-rw-r--r-- 1 clamav clamav  24696 2007-12-17 04:37 daily.mdu
-rw------- 1 clamav clamav 230257 2007-12-17 10:37 daily.ndb
-rw-r--r-- 1 clamav clamav   4458 2007-10-31 13:37 daily.ndu
-rw-r--r-- 1 clamav clamav   2808 2007-12-08 05:14 daily.pdb
-rw------- 1 clamav clamav    963 2007-12-08 21:14 daily.wdb
-rw-r--r-- 1 clamav clamav   2922 2007-09-22 09:24 daily.zmd

The mode 600 files were all updated (or freshly created) in the last few days.
If I "chmod 644" the files, clamscan works properly until freshclam downloads
updates and the modes go back to 600.

If I purge and then reinstall all clamav packages, then ALL of the
virus definition files and directories in /var/lib/clamav are mode 600 or 700.

I doubt this is caused by root's umask on the system as:
# umask
0022


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23.9-amd64 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages clamav-freshclam depends on:
ii  clamav-base             0.91.2-4         anti-virus utility for Unix - base
ii  debconf [debconf-2.0]   1.5.17           Debian configuration management sy
ii  debianutils             2.28.2           Miscellaneous utilities specific t
ii  libc6                   2.7-4            GNU C Library: Shared libraries
ii  libclamav2              0.91.2-4         anti-virus utility for Unix - libr
ii  logrotate               3.7.1-3          Log rotation utility
ii  lsb-base                3.1-24           Linux Standard Base 3.1 init scrip
ii  ucf                     3.004            Update Configuration File: preserv
ii  zlib1g                  1:1.2.3.3.dfsg-8 compression library - runtime

clamav-freshclam recommends no packages.

-- debconf information:
* clamav-freshclam/autoupdate_freshclam: daemon
  clamav-freshclam/proxy_user:
* clamav-freshclam/NotifyClamd: /etc/clamav/clamd.conf
* clamav-freshclam/local_mirror: db.local.clamav.net
* clamav-freshclam/http_proxy:
  clamav-freshclam/mirrors.txt-note:
* clamav-freshclam/update_interval: 24
  clamav-freshclam/internet_interface:



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

Reply via email to