Steps: 1. emerge net-fs/samba [ebuild R ] net-fs/samba-3.0.4-r1 +acl +cups +doc -kerberos -ldap -mysql +oav +pam -postgres -python +readline -xml -xml2 0 kB 2. Setup smb.conf (attachment 1 [details]) - very similar to ref URL - note fixed: vfs object = /usr/lib/vfs/vscan-clamav.so 3. Add /etc/samba/vscan-clamav.conf (as per ref URL except I did a quarantine option for infected files) started clamav and samba on localhost (to samba server) # smbclient -L localhost Unknown parameter encountered: "vfs options" Ignoring unknown parameter "vfs options" Password: Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.4] tree connect failed: NT_STATUS_BAD_NETWORK_NAME From log /var/log/samba/log.127.0.0.1 [2004/06/25 16:14:48, 3] smbd/vfs.c:vfs_init_default(203) Initialising default vfs hooks [2004/06/25 16:14:48, 3] smbd/vfs.c:vfs_init_custom(229) Initialising custom vfs hooks from [/usr/lib/vfs/vscan-clamav.so] [2004/06/25 16:14:48, 2] lib/module.c:do_smb_load_module(63) Module '/usr/lib/vfs/vscan-clamav.so' loaded [2004/06/25 16:14:48, 0] smbd/vfs.c:vfs_init_custom(256) Can't find a vfs module [/usr/lib/vfs/vscan-clamav.so] [2004/06/25 16:14:48, 0] smbd/vfs.c:smbd_vfs_init(319) smbd_vfs_init: vfs_init_custom failed for /usr/lib/vfs/vscan-clamav.so [2004/06/25 16:14:48, 0] smbd/service.c:make_connection_snum(502) vfs_init failed for service IPC$ [2004/06/25 16:14:48, 3] smbd/error.c:error_packet(118) error packet at smbd/reply.c(389) cmd=117 (SMBtconX) NT_STATUS_BAD_NETWORK_NAME [2004/06/25 16:14:48, 3] smbd/process.c:timeout_processing(1104) timeout_processing: End of file from client (client has disconnected). [2004/06/25 16:14:48, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 Commenting out the vfs options works fine.
Created attachment 34111 [details] smb.conf
strange: "vfs options" was officially removed from configuration options during the latest releases of samba-3.0.x. But this should not give the error NT_STATUS_BAD_NETWORK_NAME: could you try to compile with minimal CFLAGS? like -O1, or so: there are similar issues on ppc{32,64} and sparc that could be solved lowering compilation flags.
if you have time to spare, can you try samba-3.0.5-r1? Libs change: from /usr/lib/vfs to /usr/lib/samba/vfs. Compiler flags lowering. I'm opening a forum on its refinig on bug #58090
Starting to think this bug is INVALID. In step 2 I've put a full path on /usr/lib.... The gentoo URL (and man 5 smb.conf etc...) all suggest that only "vfs object = vscan-clamav" is needed. I've changed to the right way and the vfs clamav seems to be initialising itself. And no errors. Sorry for the confusion. I'm not convinced "vfs options" is removed. Looking at /usr/share/doc/samba-3.0.5-r1/WHATSNEW.txt.gz Line 1514 says its removed. Line 1567 says its added in version 3. Its still in the documentation http://au1.samba.org/samba/docs/man/smb.conf.5.html That and it works. # testparm Load smb config files from /etc/samba/smb.conf Processing section "[home]" Processing section "[printers]" Processing section "[print$]" Processing section "[FaxModem]" Processing section "[Web]" Processing section "[portage]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions # Global parameters [global] server string = Samba Server %v interfaces = lo, eth0 bind interfaces only = Yes guest account = samba username map = /etc/samba/smbusers log level = 3 log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No remote announce = 10.10.10.0/64 vscan-clamav:config-file = /etc/samba/vscan-clamav.conf printer admin = @adm guest ok = Yes hosts allow = 127.0.0.1, 10.10.10.0/24 hosts deny = 0.0.0.0/0 vfs objects = vscan-clamav [home] comment = Home Directories path = /home valid users = @users read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes print command = lpr -P %p -o raw %s -r # using client side printer drivers. browseable = No [print$] path = /etc//samba/printers write list = @adm guest ok = No [FaxModem] comment = FaxModem - not setup yet path = /var/spool/samba printable = Yes [Web] comment = Web Pages path = /var/www write list = nulus, dan, @users [portage] path = /usr/portage guest only = Yes