[Samba] 'document has been locked for editing by another user' - medium latency / limited bw connection issues?

Thomas Schulz schulz at adi.com
Thu Mar 20 09:15:15 MDT 2014

> Am Montag 17 M=C3=A4rz 2014 schrieb Bram Matthys:
> > Hi,
> >=20
> > I hope some of you have been in a similar situation and can shed some
> > light on this:
> We have a similar situation here in the company.
> > I have a VPN connection to a Samba 4.1.4 server and when I use Word 2010
> We have normal LAN and users are sometimes changing some config files of=20
> the CAD system. That means changing plain text files with either Notepad,=20
> Notepad++, gvim or Wordpad. The user can open the file but is not able to=20
> save a changed file.
> > on a W7 client to open an existing file I often get the following
> also W7 clients running the CAD system and the editors for changing
> > error: "document.docx has been locked for editing by another user."
> Similar message
> If the user creates the file new than he can save it. But if any user in=20
> the same UNIX primary group changed the file, the original creator is not=20
> able to edit the same file any more. Nor is he able to remove or copy the=20
> files. He can create new files and then he is able to do everything=20
> (delete, copying, editing).=20
> The share that stores the files is on the AIX machine. When the user logs=20
> into this machine he can do whatever he wants with the files according to=20
> the UNIX file permissions. Even another user has changed this file he still=
> =20
> can edit the original file, which is not possible when this is done on the=
> =20
> Windos client.=20
> Samba version 3.5.14
> OS of the samba server: AIX
> OS of client: Windows 7=20

I can't say anything about the first mail, but I have an idea about the
second mail. I assume that you have directories/folders that have the
group permission set to include write. Try adding

inherit permissions = yes

to the share definition in your smb.conf file.

Tom Schulz
Applied Dynamics Intl.
schulz at adi.com

More information about the samba mailing list