Re: [Samba] How do I lock a shared file?

2013-09-05 Thread steve
On Thu, 2013-09-05 at 10:25 -0700, Jeremy Allison wrote: > On Thu, Sep 05, 2013 at 06:25:15PM +0200, steve wrote: > > Hi > > Yeah, the lesson plan is a good idea! > > > > LibreOffice locks files as you'd expect:) Nothing else works though. I'm > > amazed that no one else has encountered this befor

Re: [Samba] How do I lock a shared file?

2013-09-05 Thread Jeremy Allison
On Thu, Sep 05, 2013 at 06:25:15PM +0200, steve wrote: > Hi > Yeah, the lesson plan is a good idea! > > LibreOffice locks files as you'd expect:) Nothing else works though. I'm > amazed that no one else has encountered this before. Every "content management service" software product is based on t

Re: [Samba] How do I lock a shared file?

2013-09-05 Thread steve
On Thu, 2013-09-05 at 14:40 +0200, Helmut Hullen wrote: > Hallo, steve, > > Du meintest am 05.09.13: > > >>> School classes often have projects with files that many students > >>> will need to edit. > > [...] > > >> Also, nobody forces applications to keep files open while > >> they are edited.

Re: [Samba] How do I lock a shared file?

2013-09-05 Thread Helmut Hullen
Hallo, steve, Du meintest am 05.09.13: >>> School classes often have projects with files that many students >>> will need to edit. [...] >> Also, nobody forces applications to keep files open while >> they are edited. For example even some Windows native editor >> (I don't remember which) loads

Re: [Samba] How do I lock a shared file?

2013-09-05 Thread Volker Lendecke
On Thu, Sep 05, 2013 at 02:23:10PM +0200, steve wrote: > It's a pity that we'll have to work around it. Surely Samba knows if a > file is open or not doesn't it? What's all this oplock stuff? It would Samba certainly knows if a file is open. But it is by no way safe that an application really ope

Re: [Samba] How do I lock a shared file?

2013-09-05 Thread steve
On Thu, 2013-09-05 at 14:14 +0200, Volker Lendecke wrote: > On Thu, Sep 05, 2013 at 02:08:27PM +0200, steve wrote: > > > This is a feature of the SMB protocol that a client can > > > explicitly request. It's called share modes. There is no > > > option where you can enable this for all open files.

Re: [Samba] How do I lock a shared file?

2013-09-05 Thread Volker Lendecke
On Thu, Sep 05, 2013 at 02:08:27PM +0200, steve wrote: > > This is a feature of the SMB protocol that a client can > > explicitly request. It's called share modes. There is no > > option where you can enable this for all open files. This > > would not make sense, as very often a single client opens

Re: [Samba] How do I lock a shared file?

2013-09-05 Thread steve
On Thu, 2013-09-05 at 13:34 +0200, Volker Lendecke wrote: > On Thu, Sep 05, 2013 at 01:23:14PM +0200, steve wrote: > > 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 r

Re: [Samba] How do I lock a shared file?

2013-09-05 Thread Volker Lendecke
On Thu, Sep 05, 2013 at 01:23:14PM +0200, steve wrote: > 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 > > > wou

Re: [Samba] How do I lock a shared file?

2013-09-05 Thread steve
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 a

Re: [Samba] How do I lock a shared file?

2013-09-05 Thread Volker Lendecke
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

[Samba] How do I lock a shared file?

2013-09-05 Thread steve
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? Here is the share with its acl: [privado] path = /home/privado read only = No inherit acls =