[Samba] Samba 3.0 persistent locked files

Jaap van Geels mdkwd9w02 at sneakemail.com
Wed Jan 7 10:16:15 GMT 2004

I migrated an existent domain, about 70 NT4 + some XP clients to Samba.
Redhat 9, Samba 3.0, Single server configured as PDC.

A major problem that occurs is that often files that are locked, stay 
locked even after the client pc reboots. Users cannot access the files 
anymore and Samba has to be restarted.

Workarounds I created are:
- stop/start samba at night and "rm -f /var/cache/samba/locking.tdb" in 
- disable locking on some shares like homedirs were I expect only one 
user at a time.

Is this a configuration error or known issue? I cannot find anything 
like this searching google(groups).

TIA for any help.

Jaap van Geels

smb.conf globals:
  workgroup = NETWORK
  server string = Server
  passdb backend = tdbsam
  passwd program = /usr/bin/passwd %u
  unix password sync = Yes
  log level = 2
  log file = /var/log/samba/%m.log
  max log size = 50
  socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
  printcap name = cups
  logon script = netlogon.cmd
  logon path =
  domain logons = Yes
  os level = 65
  preferred master = Yes
  domain master = Yes
  dns proxy = No
  ldap ssl = no
  hosts allow = 172.21., 172.20., 127.
  printing = cups
  printer admin = @ntadmin
  pam password change = yes

  oplocks = no
  level2 oplocks = no
  kernel oplocks = no
  oplock break wait time = 0
  veto oplock files =
  fake oplocks = No
  oplock contention limit = 2

  inherit permissions = yes
  username map = /etc/samba/smbusers

More information about the samba mailing list