[Samba] How do I lock a shared file?

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Sep 5 03:51:51 MDT 2013


On Thu, Sep 05, 2013 at 10:30:56AM +0200, steve wrote:
> 4.0.9 as a file server
> Hi
> We have a rw folder where we can share files. If a user opens a file, I
> would like it to be locked so the other users can't open and edit it at
> the same time.
> 
> Is this possible?

Open the file with a smb client with value 0 for the
sharing argument. This will block access for other SMB
clients.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de

*****************************************************************
visit us on it-sa:IT security exhibitions in Nürnberg, Germany
October 8th - 10th 2013, hall 12, booth 333
free tickets available via code 270691 on: www.it-sa.de/gutschein
******************************************************************


More information about the samba mailing list