[Samba] FileMaker lock problem

Dwight Tovey dtovey at emergecore.com
Fri Jun 24 14:28:01 GMT 2005

We have a customer system running Slackware Linux (kernel 2.4.25) and
Samba.  The customer was running Samba 2.2.8 but we recently upgraded them
Samba 3.0.13.

The customer has a FileMaker database on a public share.  Before the
upgrade, the customer was able to have multiple concurrent access to the
database.  After the upgrade, only the first user to access the database
was successful.  Everybody else received a "File already opened by
another user" error.

My first thought on this was that it was an oplock issue.  However,
setting 'oplocks = no' did not resolve the problem.  I even tried
'level2 oplocks = no' with no joy.

I set the log level to 3 and found this:
[2005/06/23 16:15:24, 3] smbd/dosmode.c:unix_mode(111)
  unix_mode(FileMaker DB/main/Player File.fp5) returning 0666
[2005/06/23 16:15:24, 2] smbd/open.c:check_share_mode(530)
  Share violation on file (2,2,2,3129,FileMaker DB/main/Player
File.fp5,fcbopen = 0, flags = 2) = 0
[2005/06/23 16:15:24, 2] smbd/open.c:open_file(245)
  user opened file FileMaker DB/main/Player File.fp5 read=Yes write=Yes

At first glance this looks to me like Samba reported a problem with
multiple access, but opened the file anyway.

I'm looking through the Samba source to see if I can figure out what is
going on, I thought I would ask the list if anybody knows what I'm

Here is the current smb.conf:
passdb backend = ldapsam:ldap://
ldap suffix = "o=Company,c=US"
ldap group suffix = "ou=Groups"
ldap user suffix = "simpleObject=File Sharing,ou=Users"
ldap admin dn = "cn=Manager,o=Company,c=US"
ldap ssl = no
null passwords = yes
encrypt passwords = yes
log file = /usr/local/samba/log
netbios name = MSBLSERVER
workgroup = WORKGROUP
log level = 3
max log size = 10000
security = user
wins support = yes
socket options = TCP_NODELAY
admin users = manager
oplocks = no
level2 oplocks = no
server string = Company File Server

path = /var/public
browseable = yes
guest ok = no
read only = no
create mask = 0666
directory mask = 0777

Any thoughts?


Dwight N. Tovey
email: dtovey at emergecore.com
Work to Live : Live to Ride : Ride to Work

More information about the samba mailing list