[Samba] I need make an consult on Samba locking.

Juan Cruz Osellame JOsellame at sprayette.com.ar
Fri Mar 10 10:26:11 GMT 2006


Hi  to all

I need make an consult on Samba locking.
I hope that it can help me

I'm working with:
        Linux SuSe 10.0 server with Samba 3.0.20-4-SUSE installed.
        One Windows XP client with FoxPro installed.
        Four Linux clients with DOSEmu and FoxPro 2.5 installed.

On the Samba Server I have an shared directory with access databases.


The problem:

I open one free table in foxpro on Windows and I lock one registry. 
( rlock() )
I open the same free table in foxpro 2.5 on DOSEmu in the Linux client and I 
attempt to modify the lock register. Linux let me to modify the lock register 
and not report me the lock status.

The samba client for linux don't work with lock's?

The problem is the local file cache for clients?

I make diferet tests... but, not successful.

I send attached my samba config file.

I try with a excel file but it does not lock either.

I wait for answer

Thank very much

-- 
Juan Cruz Osellame

SPRAYETTE S.A. 
As Seen on TV products 
www.sprayette.com
-------------- next part --------------
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-09-13
[global]
workgroup = TUX-NET
printcap name = cups
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
domain master = No
#++++++++++++++++++++++++++++++++++++++++++++++++++++
kernel oplocks = yes
oplocks = no
fake oplocks = no
level2 oplocks = no
write cache size = 0
locking = yes
lock spin count = 3
strict locking = yes
blocking locks = yes
csc policy = disable
dos filemode = yes


## Share disabled by YaST
# [homes]
#	comment = Home Directories
#	valid users = %S
#	browseable = No
#	read only = No
#	inherit acls = Yes

[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
#++++++++++++++++++++++++++++++++++++++++++++++++++++
kernel oplocks = yes
oplocks = no
fake oplocks = no
level2 oplocks = no
write cache size = 0
locking = yes
lock spin count = 3
strict locking = yes
blocking locks = yes
csc policy = disable
dos filemode = yes



## Share disabled by YaST
# [users]
#	comment = All users
#	path = /home
#	read only = No
#	inherit acls = Yes
#	veto files = /aquota.user/groups/shares/

## Share disabled by YaST
# [groups]
#	comment = All groups
#	path = /home/groups
#	read only = No
#	inherit acls = Yes

## Share disabled by YaST
# [printers]
#	comment = All Printers
#	path = /var/tmp
#	printable = Yes
#	create mask = 0600
#	browseable = No

## Share disabled by YaST
# [print$]
#	comment = Printer Drivers
#	path = /var/lib/samba/drivers
#	write list = @ntadmin root
#	force group = ntadmin
#	create mask = 0664
#	directory mask = 0775

## Share disabled by YaST
# [public]
#	comment = Test
#	path = /home/public/
#	guest ok = yes
#	read only = no
#	pintable = no
#	oplock contention limit = 0
#	oplocks = no
#	veto oplock files = ACCESOS.DBF/ACCESOS.CDX/ACCESOS.FPT/
#	case sensitive = no
#	msdfs proxy = no

[netlogon]

#[test]
#path = /shared/test/
#guest ok = yes
#read only = no
#case sensitive = no
#comment = Test
#hide dot files = no
#msdfs proxy = no


[TEST2]
path = /shared/test2/
guest ok = yes
read only = no
case sensitive = no
msdfs proxy = no
#++++++++++++++++++++++++++++++++++++++++++++++++++++
kernel oplocks = yes
oplocks = no
fake oplocks = no
level2 oplocks = no
write cache size = 0
locking = yes
lock spin count = 3
strict locking = yes
blocking locks = yes
csc policy = disable
dos filemode = yes


More information about the samba mailing list