From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 20:43:46 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 5E67A16A4CE for ; Sat, 26 Mar 2005 20:43:46 +0000 (GMT) Received: from relay.pair.com (relay00.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id A177343D2D for ; Sat, 26 Mar 2005 20:43:45 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: (qmail 22785 invoked from network); 26 Mar 2005 20:43:44 -0000 Received: from unknown (HELO ale.varnet.bsd) (unknown) by unknown with SMTP; 26 Mar 2005 20:43:44 -0000 X-pair-Authenticated: 200.115.214.28 Date: Sat, 26 Mar 2005 17:44:31 -0300 From: Alejandro Pulver To: Fabian Keil Message-ID: <20050326174431.36f6021e@ale.varnet.bsd> In-Reply-To: <20050326203751.3e5da8b8@localhost> References: <20050326122909.06ed9062@ale.varnet.bsd> <20050326203751.3e5da8b8@localhost> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) 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 20:43:46 -0000 On Sat, 26 Mar 2005 20:37:51 +0100 Fabian Keil wrote: > 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 Hello, Thank you for your reply. My guest user is 'nobody', but I also tried with 'ale' and 'root' (wich owns the mount point). The directory '/mnt/w2k' is owned by 'root' and the group 'wheel', the permissions are rwxr-xr-x. Y have the same strange dates. Thanks and Best Regards, Ale