On Tue, 2007-04-24 at 16:40 -0400, Christopher S Arnold wrote:
> I am following the faq on serving the cvd files from a local server so that 
> each client doesn’t have to download them from the clamav servers? I have 
> edited /etc/clamd.conf to say DatabaseDirectory /srv/www/htdocs/<folder> and 
> also edited the freshclam.conf file to say the same thing. When i try to run 
> freshclam, i get this error:
> ERROR: getfile: Can't create new file ./clamav-somelonghexnumber in 
> /srv/www/htdocs/<folder>
> Hint: The database directory must be writable for UID 65 or GID 107
> ERROR: Can't download main.cvd from database.clamav.net
> LibClamAV Error: Database directory: /srv/www/htdocs<folder> not locked
> 
> How do i make the folder writable for UID 65 or GID 107? 

$user> sudo chgrp 107 /srv/www/htdocs<folder>
$user> sudo chmod g+wx /srv/www/htdocs<folder>


> And how do i lock the /srv/www/htdocs/<folder> folder so only clamav
> and its hosts that will be downloading the DB can get to it?

In your vhost config in apache:
<Directory /srv/www/htdocs/<folder> >
 permit from ip.address.of.client
 permit from ip.address.of.anotherclient
 permit from ip.address.of.stillanotherclient
 deny from all
</Directory>


>  Thanks for any help
> 

> Chris
> 
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://lurker.clamav.net/list/clamav-users.html
-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
Austin Energy
http://www.austinenergy.com
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to