Jim Knuth schrieb:
> Heute (29.06.2007/07:13 Uhr) schrieb Peter Huetmannsberger,
> 
> 
>> Hi, 
> 
>> it is telling you that you have a permission problem. In the 
>> /etc/freshclam.conf file there is a parameter: 
> 
>> DatabaseOwner amavis
> 
> vi /etc/clamav/freshclam.conf
> 
> DatabaseOwner amavis

/etc/clamav/freshclam.conf :
DatabaseOwner clamav
PidFile /var/run/clamav/freshclam.pid

> # 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. 
> 
>> 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

> ls -la /var/lib/clamav/
> insgesamt 18592
> drwxr-xr-x  4 clamav clamav    4096 2007-06-29 11:31 .
> drwxr-xr-x 31 root   root      4096 2007-04-30 15:00 ..
> drwxr-xr-x  2 clamav clamav    4096 2007-06-29 11:31 daily.inc
> -rw-r--r--  1 clamav clamav 9351789 2007-04-19 10:50 main.cvd
> drwxr-xr-x  2 clamav clamav    4096 2007-06-29 09:14 main.inc
> -rw-------  1 clamav clamav     780 2007-06-29 11:31 mirrors.dat
> -rw-r--r--  1 clamav clamav 2836030 2007-06-29 08:25 MSRBL-Images.hdb
> -rw-r--r--  1 clamav clamav 2804383 2007-06-29 08:37 MSRBL-Images.hdb-bak
> -rw-r--r--  1 clamav clamav  228436 2007-06-25 12:36 MSRBL-SPAM.ndb
> -rw-r--r--  1 clamav clamav  228232 2007-06-25 16:59 MSRBL-SPAM.ndb-bak
> -rw-r--r--  1 clamav clamav 1053152 2007-06-29 08:37 phish.ndb
> -rw-r--r--  1 clamav clamav 1047540 2007-06-29 08:37 phish.ndb-bak
> -rw-r--r--  1 clamav clamav  177727 2007-06-28 21:29 phish.ndb.gz
> -rw-r--r--  1 clamav clamav  555783 2007-06-29 08:37 scam.ndb
> -rw-r--r--  1 clamav clamav  543195 2007-06-29 08:37 scam.ndb-bak
> -rw-r--r--  1 clamav clamav  111125 2007-06-28 21:29 scam.ndb.gz

/etc/amavis/conf.d/15-av_scanners
['ClamAV-clamd',
    \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.ctl"],


adduser clamav amavis?
/etc/group
clamav:x:108:
amavis:x:107:clamav

>> Hope this helps,
> 
> I think, everything is ok!?
> 
>> .peter
> 
> 
>> On Fri, 29 Jun 2007, Jim Knuth wrote:
> 
>>> Hallo und Guten Morgen AMaViS-user,
>>>
>>> I use amavisd-new-2.5.2 (20070627) and clamav 0.90.3 and get this
>>> in my logfile:
>>>
>>> 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-42df18babdbd4f4571b7ecb22fb3309c 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-2b1f515d40dc735a28b16b9b88b82e78 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
>>>
>>> UID 108 is clamav
>>>
>>> id amavis
>>> uid=105(amavis) gid=109(amavis) Gruppen=109(amavis),108(clamav)
>>>
>>> What am I missing? Thanks in advance.
> 
> 


-- 
GrĂ¼sse/Greetings
MH


Dont send mail to: [EMAIL PROTECTED]
--


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to