From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 19:41:56 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A4B016A4CE for ; Sat, 26 Mar 2005 19:41:56 +0000 (GMT) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DADE43D2D for ; Sat, 26 Mar 2005 19:41:55 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 16614 invoked from network); 26 Mar 2005 19:41:51 -0000 Received: from unknown (HELO localhost) ([pbs]775067@[83.129.6.164]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 26 Mar 2005 19:41:51 -0000 Date: Sat, 26 Mar 2005 20:37:51 +0100 From: Fabian Keil To: Alejandro Pulver Message-ID: <20050326203751.3e5da8b8@localhost> In-Reply-To: <20050326122909.06ed9062@ale.varnet.bsd> References: <20050326122909.06ed9062@ale.varnet.bsd> X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions Subject: Re: Samba problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Mar 2005 19:41:56 -0000 Alejandro Pulver wrote: > I am using FreeBSD 5.3 with Samba 3.0.7,1. > > I can read all files from a Windows 2000 Pro. But when > I try to access a mount point that is an NTFS filesystem, I have no read > permission (files and directories appear as zero length files) until I > access them from the server machine (like doing an 'ls'). > > My configuration file is as follows: > > ===== BEGIN ===== > # Samba config file created using SWAT > # from 127.0.0.1 (127.0.0.1) > # Date: 2004/12/11 19:24:02 > > # Global parameters > [global] > workgroup = VARNET > server string = FreeBSD 5.3 > security = SHARE > log file = /var/log/samba/log.%m > max log size = 50 > dns proxy = No > > [mnt] > comment = Mounted Filesystems > path = /mnt > guest ok = Yes > > [printers] > comment = All Printers > path = /var/spool/samba > printable = Yes > browseable = No > > [ale] > comment = Ale's Home DIrectory > path = /home/ale > guest ok = Yes > ===== END ======= > > Note: I have subdirectories under '/mnt' like 'w2k', 'wxp', 'cam', and > 'tmp'. > > What am I doing wrong? Who owns the subdirectories and who is your guest user? I'm using samba version 3.0.11 and can't reproduce the described behavior. My smb.conf is: [global] workgroup = W62 netbios name = TP51 server string = Samba Server auf Laptop security = user encrypt passwords = yes log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY wins support = yes dns proxy = no [fk] comment = No place like home path = /home/fk valid users = fk public = no writable = yes printable = no [mnt] comment = Quick test path = /mnt valid users = fk public = no writable = yes printable = no fk@r51 /mnt $ls -l total 8 drwxr-xr-x 1 fk wheel 0 Apr 22 2009 ad0s1 drwxr-xr-x 1 fk wheel 4096 Jan 1 1980 ad0s2 drwxr-xr-x 5 fk wheel 512 Mar 25 19:14 datenspeicher drwxr-xr-x 2 fk wheel 512 Mar 26 19:03 test ad0s1 is ntfs, ad0s2 is fat32. Both can be used without any problems. I just noticed the strange dates. If I unmount ad0s1 and ad0s2, the dates make more sense. fk@r51 /mnt #ls -l total 8 drwxr-xr-x 2 fk wheel 512 Mar 26 18:58 ad0s1 drwxr-xr-x 2 fk wheel 512 Mar 26 15:03 ad0s2 drwxr-xr-x 5 fk wheel 512 Mar 25 19:14 datenspeicher drwxr-xr-x 2 fk wheel 512 Mar 26 19:03 test Interesting. I'm using FreeBSD 5.4-PRERELEASE #2: Fri Mar 25 17:53:21 CET 2005. Fabian -- http://www.fabiankeil.de