From: Jim K. <jk...@jk...> - 2007-06-29 09:42:40
|
Heute (29.06.2007/07:13 Uhr) schrieb Peter Huetmannsberger, > Hi,=20 > it is telling you that you have a permission problem. In the=20 > /etc/freshclam.conf file there is a parameter:=20 > DatabaseOwner amavis vi /etc/clamav/freshclam.conf DatabaseOwner amavis UpdateLogFile /var/log/clamav/freshclam.log LogVerbose false LogSyslog false LogFacility LOG_LOCAL6 LogFileMaxSize 2M LogFileUnlock yes Foreground false Debug false MaxAttempts 5 DatabaseDirectory /var/lib/clamav/ DNSDatabaseInfo current.cvd.clamav.net AllowSupplementaryGroups true PidFile /var/run/amavis/freshclam.pid ConnectTimeout 30 ReceiveTimeout 30 ScriptedUpdates yes # Check for new database 24 times a day Checks 24 DatabaseMirror db.local.clamav.net DatabaseMirror database.clamav.net > Default is user clamav. Depending on who is calling freshclam, you need to > have the same owner set in this conf file.=20 > Also make sure that the logfile /var/log/clamav/freshclam.log is writeable > by that user. ls -l /var/log/clamav/freshclam.log -rw-rw-rw- 1 amavis adm 91250 2007-06-29 10:42 /var/log/clamav/freshclam.log > And in your case /var/lib/clamav as well. ls -l /var/lib/clamav insgesamt 17492 drwxr-xr-x 2 amavis amavis 4096 2007-06-29 08:09 daily.inc -rw-r--r-- 1 amavis amavis 8189490 2007-04-12 21:33 main.cvd drwxr-xr-x 2 amavis amavis 4096 2007-06-29 08:10 main.inc -rw------- 1 amavis amavis 728 2007-06-24 23:42 mirrors.dat -rw-r--r-- 1 amavis amavis 2835906 2007-06-29 08:00 MSRBL-Images.hdb -rw-r--r-- 1 amavis amavis 2835356 2007-06-29 08:01 MSRBL-Images.hdb-bak -rw-r--r-- 1 amavis amavis 228436 2007-06-25 12:36 MSRBL-SPAM.ndb -rw-r--r-- 1 amavis amavis 228232 2007-06-25 16:01 MSRBL-SPAM.ndb-bak -rw-r--r-- 1 amavis amavis 1053152 2007-06-29 00:01 phish.ndb -rw-r--r-- 1 amavis amavis 1052080 2007-06-29 00:01 phish.ndb-bak -rw-r--r-- 1 amavis amavis 177727 2007-06-28 21:29 phish.ndb.gz -rw-r--r-- 1 amavis amavis 555783 2007-06-29 00:01 scam.ndb -rw-r--r-- 1 amavis amavis 555783 2007-06-29 00:01 scam.ndb-bak -rw-r--r-- 1 amavis amavis 111125 2007-06-28 21:29 scam.ndb.gz > Hope this helps, I think, everything is ok!? > .peter > On Fri, 29 Jun 2007, Jim Knuth wrote: >> Hallo und Guten Morgen AMaViS-user, >>=20 >> I use amavisd-new-2.5.2 (20070627) and clamav 0.90.3 and get this >> in my logfile: >>=20 >> tail -f /var/log/clamav/freshclam.log >> ClamAV update process started at Thu Jun 28 23:42:51 2007 >> main.inc is up to date (version: 43, sigs: 104500, f-level: 14, builder:= sven) >> ERROR: getfile: Can't create new file ./clamav-42df18babdbd4f4571b7ecb22= fb3309c in /var/lib/clamav/daily.inc >> Hint: The database directory must be writable for UID 108 or GID 108 >> ERROR: getpatch: Can't download daily-3518.cdiff from db.local.clamav.net >> WARNING: Incremental update failed, trying to download daily.cvd >> ERROR: getfile: Can't create new file ./clamav-2b1f515d40dc735a28b16b9b8= 8b82e78 in /var/lib/clamav >> Hint: The database directory must be writable for UID 108 or GID 108 >> ERROR: Can't download daily.cvd from db.local.clamav.net >>=20 >> UID 108 is clamav >>=20 >> id amavis >> uid=3D105(amavis) gid=3D109(amavis) Gruppen=3D109(amavis),108(clamav) >>=20 >> What am I missing? Thanks in advance. --=20 Viele Gruesse, Kind regards, Jim Knuth jk...@jk... ICQ #277289867 ---------- Zufalls-Zitat ---------- Es ist ein gro=DFer Vorteil im Leben, die Fehler, aus denen=20 man lernen kann, m=F6glichst fr=FCh zu begehen. (Sir Wiston=20 Churchill, brit. Politiker, 1874-1965) ---------- Der Text hat nichts mit dem Empfaenger der Mail zu tun ---------- Virus free. Checked by NOD32 Version 2363 Build 10202 29.06.2007 |