Hello, I have installed samba-vscan module but when I try to read a test file: May 24 12:14:12 va2 smbd_vscan-clamav[15035]: ERROR: file /home/testav/eicar.com not found, not readable or an error occured why ? my smb.conf for homes: [homes] comment = home of %U, %u read only = No valid users = %U create mask = 0644 directory mask = 0775 browseable = No vfs object = vscan-clamav vscan-clamav: config-file = /etc/samba/vscan-clamav.conf francesco.
On Mon, May 24, 2004 at 04:37:51PM +0200, Francesco Defilippo wrote:> May 24 12:14:12 va2 smbd_vscan-clamav[15035]: ERROR: file > /home/testav/eicar.com not found, not readable or an error occured > > why ?If you are using a vscan-clamav build which uses the clamd daemon (the default, afaik), then you need to make sure that the "clamav" user has access to that file. The latest vscan-clamav version, however, has an option to be built with libvlamac support instead of clamd. In that case, it uses the same privileges as the user connected to the share to perform the scan.
Hi Francesco My solution isn't best but ... Try to set clamav user to uid 0 Was unique way that I found... --------------------------------------------------- Emerson Henrique Kfuri Pereira Divis?o de Atendimento e Consultoria CECOM - Reitoria - UFMG Telefone: 34994009 --------------------------------------------------- Francesco Defilippo <francesco.defili Para ppo@sys-net.it> samba@lists.samba.org Enviado Por: cc samba-bounces+dav es-jr=ufmg.br@lis Assunto ts.samba.org [Samba] vscan permission 24/05/2004 11:37 Hello, I have installed samba-vscan module but when I try to read a test file: May 24 12:14:12 va2 smbd_vscan-clamav[15035]: ERROR: file /home/testav/eicar.com not found, not readable or an error occured why ? my smb.conf for homes: [homes] comment = home of %U, %u read only = No valid users = %U create mask = 0644 directory mask = 0775 browseable = No vfs object = vscan-clamav vscan-clamav: config-file = /etc/samba/vscan-clamav.conf francesco. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Andreas wrote:>On Mon, May 24, 2004 at 04:37:51PM +0200, Francesco Defilippo wrote: > > >>May 24 12:14:12 va2 smbd_vscan-clamav[15035]: ERROR: file >>/home/testav/eicar.com not found, not readable or an error occured >> >>why ? >> >> > >If you are using a vscan-clamav build which uses the clamd daemon (the >default, afaik), then you need to make sure that the "clamav" user >has access to that file. > >The latest vscan-clamav version, however, has an option to be built with >libvlamac support instead of clamd. In that case, it uses the same privileges >as the user connected to the share to perform the scan. >:-[ .. thnx now works! francesco. SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497
francesco defilippo wrote:>> If you are using a vscan-clamav build which uses the clamd daemon (the >> default, afaik), then you need to make sure that the "clamav" user >> has access to that file. >> >> The latest vscan-clamav version, however, has an option to be built with >> libvlamac support instead of clamd. In that case, it uses the same >> privileges >> as the user connected to the share to perform the scan. >> > :-[ .. thnx now works! >Hello again, I have to go back to clamd (with root permission), using libclamscan samba uses too many resource, I have more than one smbd that grab all cpu. francesco. SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497
On Tue, May 25, 2004 at 06:14:20PM +0200, francesco defilippo wrote:> Hello again, > I have to go back to clamd (with root permission), using libclamscan > samba uses too many resource, I have more than one smbd that grab all cpu.Hmm, interesting to know that