Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Mar 2005 20:37:51 +0100
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:  <20050326203751.3e5da8b8@localhost>
In-Reply-To: <20050326122909.06ed9062@ale.varnet.bsd>
References:  <20050326122909.06ed9062@ale.varnet.bsd>

next in thread | previous in thread | raw e-mail | index | archive | help
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?

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



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