Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Mar 2005 11:02:44 +0200
From:      Fabian Keil <freebsd-listen@fabiankeil.de>
To:        Alejandro Pulver <alejandro@varnet.biz>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Samba problems
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Alejandro Pulver <alejandro@varnet.biz> wrote:

> On Sat, 26 Mar 2005 20:37:51 +0100
> Fabian Keil <freebsd-listen@fabiankeil.de> wrote:
> 
> > Alejandro Pulver <alejandro@varnet.biz> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050327110244.2c9a3be0>