[Samba] File locking problem between Linux and WinXP

Asier Baranguán abaranguan at elpagestion.com
Thu Jan 4 00:09:15 GMT 2007


El Domingo, 24 de Diciembre de 2006 00:24, Chris Barnabo escribió:

> Beta has no problem reading the files ... but as soon as it has touched
> a file in any way, that file is getting locked so that it can no longer
> be written from Alpha OR Beta.  E.g. if I make a change to index.html,
> look at it in a browser pointed to the Beta server, then try to make
> another change to index.html from either system it's locked.  This
> occurs even if the file is only opened for read, and even if the entire
> directory is mounted read-only in Beta.

I suffered the same thing some weeks ago. When one user edited a file in a 
share -specially Office .doc, .xls files- 

Adding this to smb.conf solved the problem.

    strict locking = yes
    oplocks = yes
    level2 oplocks = no
--
Asier.


More information about the samba mailing list