[Samba] MULTI-USER databases

Steve Kuryachy sysx at kzer-za.pp.ru
Thu May 12 03:16:13 GMT 2005


hi all

Subject:

1) Samba server 3.0.15 with one shared sesource
Security is set to SHARE, all guest users have full read/write access to the 
share

2) Microsoft network clients is Windows 98, Windows 2000 and Windows XP (sp2)

3) Old-age DOS program, written on Clipper (xBase), what runs on Windows 98 
and on Windows XP/2k (ntvdm)

4) Large multi-user database (dbf files) on samba server network share

5) Opportunistic locking are disabled totally on Windows XP/2000 and Windows 
98, and on the Samba server too

6) it is impossible to use one sort of network client (only 98's or only XP's)


Problem:

When clipper program runs on windows 98, all file lock operations on network 
drive are ok. But when i run clipper program on Windows 2000/XP, some strange 
things happens:

1) It is possible to delete files, what are opened on network share by other 
clients, files, which are opened EXCLUSIVELY for writing (NTX and some DBFs)

2) When two or more clients edit some dbf concurrently, i've got a database 
corruption.

3) When i switch from Win XP/2k to Win98 these terrible bugs are disappear


Solution:

????



here is my smb.conf:

[global]
 dos charset = cp866
 unix charset = koi8-r
 workgroup = ICPLUS
 netbios name = SK_UNIX
 server string = Samba Server
 interfaces = eth0, eth1, eth2, lo0
 security = SHARE
 log file = /var/log/smb/log.%m
 max log size = 50
 time server = Yes
 change notify timeout = 300
 max disk size = 40000
 max open files = 65300
 socket options = TCP_NODELAY SO_RCVBUF=8196 SO_SNDBUF=8196 IPTOS_LOWDELAY
 mangling method = hash
 os level = 90
 preferred master = Yes
 dns proxy = No
 wins server = 192.168.0.14
 kernel oplocks = No
 lock spin count = 100
 lock spin time = 15
 ldap ssl = no
 hosts allow = 192.168.0., 192.168.5., 192.168.7., 192.168.3., 127.
 csc policy = disable
 oplocks = No
 level2 oplocks = No
 wide links = No
 follow symlinks = No
 dos filemode = Yes
 dos filetimes = Yes

[sys]
 comment = System volume
 path = /mnt/raid1/wingz/sys/__sys
 read only = No
 create mask = 0770
 directory mask = 0770
 guest ok = Yes


[HP1200]
 path = /tmp
 guest ok = Yes
 printable = Yes


More information about the samba mailing list