From owner-freebsd-questions@FreeBSD.ORG Sun Mar 27 10:05:01 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 8BB6E16A4CE for ; Sun, 27 Mar 2005 10:05:01 +0000 (GMT) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7ACAC43D2D for ; Sun, 27 Mar 2005 10:05:00 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 28547 invoked from network); 27 Mar 2005 10:04:54 -0000 Received: from unknown (HELO localhost) ([pbs]775067@[83.129.4.168]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 27 Mar 2005 10:04:54 -0000 Date: Sun, 27 Mar 2005 11:02:44 +0200 From: Fabian Keil To: Alejandro Pulver Message-ID: <20050327110244.2c9a3be0@localhost> In-Reply-To: <20050326174431.36f6021e@ale.varnet.bsd> References: <20050326122909.06ed9062@ale.varnet.bsd> <20050326203751.3e5da8b8@localhost> <20050326174431.36f6021e@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: Sun, 27 Mar 2005 10:05:01 -0000 Alejandro Pulver wrote: > 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? > My guest user is 'nobody', but I also tried with 'ale' and 'root' (wich > owns the mount point). Did you see in samba's log that the guest user was changed? How did you change it, with "guest user" or with "force user"? As your problem can be reproduced, increasing samba's debug level might help. Samba should log why read access was denied. If you access the samba share with mount_smbfs, do you see the same behavior? > The directory '/mnt/w2k' is owned by 'root' and the group 'wheel', the > permissions are rwxr-xr-x. If you only want read access, this looks fine. Fabian -- http://www.fabiankeil.de