From owner-freebsd-fs@FreeBSD.ORG Thu Dec 1 19:48:58 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C87DE1065672 for ; Thu, 1 Dec 2011 19:48:58 +0000 (UTC) (envelope-from peter.maloney@brockmann-consult.de) Received: from mo-p05-ob6.rzone.de (mo-p05-ob6.rzone.de [IPv6:2a01:238:20a:202:53f5::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3CCD58FC15 for ; Thu, 1 Dec 2011 19:48:58 +0000 (UTC) X-RZG-AUTH: :LWIKdA2leu0bPbLmhzXgqn0MTG6qiKEwQRWfNxSw4HzYIwjsnvdDt2QV8d370WKsPpuXlw== X-RZG-CLASS-ID: mo05 Received: from [192.168.179.42] (hmbg-4d06fd27.pool.mediaWays.net [77.6.253.39]) by smtp.strato.de (fruni mo50) (RZmta 26.10 AUTH) with (DHE-RSA-AES128-SHA encrypted) ESMTPA id z070eenB1HDTSn for ; Thu, 1 Dec 2011 20:48:38 +0100 (MET) Message-ID: <4ED7DA15.1030108@brockmann-consult.de> Date: Thu, 01 Dec 2011 20:48:37 +0100 From: Peter Maloney User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <4ED7B713.200@sentex.net> In-Reply-To: <4ED7B713.200@sentex.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: mount_smbfs re-exported via samba not working X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2011 19:48:59 -0000 Am 01.12.2011 18:19, schrieb Mike Tancsa: > Hi, > > I am trying to export a series of shares from one Windows XP box, to another so I can better control and log access and am having problems seeing the files. I am not sure if this is a samba issue or an mount_smbfs issue > > > The setup is > > [XP-Server] -------- [FreeBSD]------[DMZ Clients] I am doing something like this: FreeBSD zfs -----nfs mount -------> Linux machine -------smb mount-------> whichever client Note I am using NFS from FreeBSD instead of samba. And before I added this to the linux machine's smb.conf global section, I would get total lockups and nobody could list directories. strict locking = no blocking locks = no So give that a try. With the first setting, any tests I tried worked fine, but others reported a similar problem, maybe when there are a few concurrent users. With the second setting, I haven't had the same problem since. (But if I share my .zfs directory over NFS, listing that hangs the dataset) > > So FreeBSD box mount_smbfs from [XP-Server], servs up the share under samab so that the DMZ clients can see it. > > > I can mount the windows XP file system shares no problem > eg > > mount_smbfs -c u -d 777 -f 777 -O xpuser:xpuser -N //xpuser@xpserver/pricelist /export > > This shows up, and I can see and create files no problem from the FreeBSD box > > # mount -t smbfs > //XPUSER@XPSERVER/PRICELIST on /export (smbfs) > > > > # ls -l /export > total 17 > drwxrwxrwx 1 xpuser xpuser - 16384 Dec 31 1969 . > drwxrwxrwx 7 xpuser xpuser - 512 Dec 1 08:04 .. > -rwxrwxrwx 1 xpuser xpuser - 95 Dec 1 10:29 dd > -rwxrwxrwx 1 xpuser xpuser - 92 Dec 1 10:58 n > -rwxrwxrwx 1 xpuser xpuser - 92 Dec 1 10:33 new > -rwxrwxrwx 1 xpuser xpuser - 95 Dec 1 10:29 test > -rwxrwxrwx 1 xpuser xpuser - 436 Dec 1 10:34 test2 > -rwxrwxrwx 1 xpuser xpuser - 15 Dec 1 10:22 this-is-a-test.txt > > > Now the problem is when I try and re-export that using samba. The files never show up on the windows PC. e.g on the other PC attached to the DMZ NIC of the FreeBSD server, I try and do something like > > net use m: \\192.168.1.1\pl /user:someothersmbuser > > I can map the drive, but doing a dir shows no files. if I do something like dir > test, it does actually create the file, but I still cannot see it > > If I use smbclient from another FreeBSD box, also in the DMZ > > %smbclient -U somesmbuser //192.168.1.1/pl > > Enter somesmbuser's password: > Domain=[DMZ] OS=[Unix] Server=[Samba 3.6.1] > smb: \> dir > NT_STATUS_INVALID_HANDLE listing \* > > > But... I can actually read the files that I know are there and make and change into directories ??!! > > smb: \> get dd > getting file \dd of size 95 as dd (1.2 KiloBytes/sec) (average 1.2 KiloBytes/sec) > smb: \> get test2 > getting file \test2 of size 436 as test2 (5.6 KiloBytes/sec) (average 3.4 KiloBytes/sec) > smb: \> > smb: \> mkdir testdir > smb: \> cd testdir > smb: \testdir\> dir > NT_STATUS_INVALID_HANDLE listing \testdir\* > smb: \testdir\> > > Any idea why its not working > > It seems directly listings are the only things not working, even though ls sees them on the FreeBSD box. > > If I export a directory in samba that just has a normal UFS file system all works just fine. Its only when I try and export the smbfs system that it does not work. I also try exporting a nullfs mounted file system and that worked, but again, only if the underlying file system was UFS, not smbfs > > > > ---Mike > >