> At 10:35 AM 7/12/2007, Jose Julian Buda wrote:
>>Hi , i am new with this soft , i have installed 
>>postfix+mailscanner+clamav  on debian "sarge" server.
>>
>>I've installed ClamAV 0.91 from source, run freshclam and the virus 
>>database is updated.
>>
>>As you can see:
>>
>>serverna:~# clamscan -V
>>ClamAV 0.91/955/Thu Jun 23 18:08:42 2005
>>serverna:~# freshclam -V
>>ClamAV 0.91/955/Thu Jun 23 18:08:42 2005
> 
> The above show database version "955" dated "18:08:42 2005" - two 
> years old.  Updates aren't working, despite what you say.
> 
>>The freshclam procces download ok the daily diff file
>>But when i run clamscan just to test it on some test files:
>>
>>serverna:~# clamscan
>>LibClamAV Warning: **************************************************
>>LibClamAV Warning: ***  The virus database is older than 7 days.  ***
>>LibClamAV Warning: ***        Please update it IMMEDIATELY!       ***
>>LibClamAV Warning: **************************************************
> 
> Maybe you need to run "ldconfig".  Maybe you need to uninstall your 
> old version of clam.  Maybe freshclam doesn't have permission to 
> write to the database directory.  Maybe your freshclam.conf specifies 
> a different DatabaseDirectory than the compiled-in default of clamscan.
> # clamconf
> and
> # clamscan --debug
> might show something interesting, or at least will show where clam is 
> looking for the databases.
> 
> -- 
> Noel Jones 
> 
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://lurker.clamav.net/list/clamav-users.html


Thank you, when i run clamscan --debug
 i see 
...
LibClamAV debug: Loading databases from /usr/local/share/clamav
...
i have two files over there

 148 -rw-rw-r--  1 clamav clamav  151524 Jun 27  2005 daily.cvd
2148 -rw-rw-r--  1 clamav clamav 2196392 Jun 27  2005 main.cvd

as i can see , they are very old
but why clamscan look in there for this files?
i have /usr/local/etc/clamd.conf with this configuration :
...
DatabaseDirectory /var/lib/clamav/
...

and /usr/local/etc/freshclam.conf with this :

...
DatabaseDirectory /var/lib/clamav/
...

How can i see where clamscan take the configuration from?
Obviously, are not this files.


when i run this, everything work fine :

serverna:~# clamscan -d /var/lib/clamav/



so , how can i set the DatabaseDirectory ? where?

Tnak you
Jose Julian Buda



_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to