[Samba] SMB share and .mdb files?

Hannes Gnad h.gnad at apfelwerk.de
Fri Aug 1 08:21:54 GMT 2008


With samba 3.0.25b as part of Mac OS X 10.5.4 Server, I'm encountering
issues with .mdb files: Some Windows apps use client software on local
machines and one Microsoft Access database on the SMB share. Everything
works fine, as long as there's only one client using the .mdb file. As
soon as a second client tries to access (and write!) to the .mdb file,
the clients on the Windows machines report broken network connections
and crash.

In Server-Admin/File-Sharing, the shares are open for SMB only, oplock
and strict locking both off. No ACL, Posix permission admin r/w, group
r/w, other r.

(Mac-specific: Could Spotlight do harm to this? It could be disabled
for this share...)

smb.conf (/etc)

     debug pid = yes
     log level = 1
     server string = Mac OS X

     printcap name = cups
     printing = cups

     encrypt passwords = yes
     use spnego = yes

     passdb backend = odsam

     idmap domains = default
     idmap config default: default = yes
     idmap config default: backend = odsam
     idmap alloc backend = odsam
     idmap negative cache time = 5

     map to guest = Bad User
     guest account = nobody

     unix charset = UTF-8-MAC
     display charset = UTF-8-MAC
     dos charset = 437

     vfs objects = darwinacl,darwin_streams

     ; Don't become a master browser unless absolutely necessary.
     os level = 2
     domain master = no

     ; For performance reasons, set the transmit buffer size
     ; to the maximum and enable sendfile support.
     max xmit = 131072
     use sendfile = yes

     ; The darwin_streams module gives us named streams support.
     stream support = yes
     ea support = yes

     ; Enable locking coherency with AFP.
     darwin_streams:brlm = yes

     ; Core files are invariably disabled system-wide, but attempting to
     ; dump core will trigger a crash report, so we still want to try.
     enable core files = yes

     ; Configure usershares for use by the synchronize-shares tool.
     usershare max shares = 1000
     usershare path = /var/samba/shares
     usershare owner only = no
     usershare allow guests = yes
     usershare allow full config = yes

     ; Filter inaccessible shares from the browse list.
     com.apple:filter shares by access = yes

     ; Check in with PAM to enforce SACL access policy.
     obey pam restrictions = yes

     ; Don't be trying to enforce ACLs in userspace.
     acl check permissions = no

     ; Make sure that we resolve unqualified names as NetBIOS before  
     name resolve order = lmhosts wins bcast host

     ; Pull in system-wide preference settings. These are managed by
     ; synchronize-preferences tool.
     include = /var/db/smb.conf

     comment = All Printers
     path = /tmp
     printable = yes
     guest ok = no
     create mode = 0700
     writeable = no
     browseable = no

smb.conf (/var/db)

	security = USER
	auth methods = odsam
	netbios name = serverg4
	workgroup = ARBEITSGRUPPE
	realm = SERVERG4.xxxxxxxxx.INTERN
	dos charset = CP437
	server string = serverg4
	ntlm auth = yes
	lanman auth = yes
	max smbd processes = 100
	log level = 1
	use kerberos keytab = yes
	realm = SERVERG4.xxxxxxxxx.INTERN
	map to guest = Never
	domain master = no
	preferred master = no
	enable disk services = yes
	enable print services = yes
	wins support = no

	comment = User Home Directories
	browseable = no
	read only = no
	create mode = 0750
	guest ok = no
	com.apple: show admin all volumes = no

Any ideas? Thanks in advance!

Beste Gruesse, Hannes Gnad                           h.gnad at apfelwerk.de
Apple Distinguished Professional                http://www.apfelwerk.de/
* Mac OS X 10.5 Leopard - seit 26. Oktober 2007 - http://www.apple.de/ *

More information about the samba mailing list