[Samba] How do I lock a shared file?

steve steve at steve-ss.com
Thu Sep 5 05:23:14 MDT 2013


On Thu, 2013-09-05 at 11:51 +0200, Volker Lendecke wrote:
> 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
> 
Hi
Could you give me pointer as to how to do that? Is it an option in
smb.conf? Surely, we would want to do this with all files on a network
no?

I noticed that LibreOffice does it by producing a lock file. Is there
anything in Samba that will do that with all files, not just office?

Cheers,
Steve
 



More information about the samba mailing list