[Samba] [samba 4.0] read only = yes + Denymode DENY_WRITE

danny d.wijsman at stokvis.eu
Mon Dec 22 04:10:12 MST 2014

Jeremy Allison wrote:
> On Fri, Dec 19, 2014 at 12:11:02PM +0100, danny wrote:
>> Hello,
>> Our samba fileserver is a member of a Windows 2008R2 domain, and has
>> different shares. These shares are set with a "read only = yes" and
>> have an explicit "write list". This works as planned.
>> But when an "read only" user opens a pdf with Adobe acrobat, the
>> file gets DenyMode DENY_WRITE and the user who can edit the file
>> can't save the document anymore. After the readonly user closes the
>> file, the file can be saved again by the user who is allowed to edit
>> it.
>> 13007        23132      DENY_WRITE 0x120089    RDONLY     NONE
>> /data/testshare   file1.pdf   Fri Dec 19 11:30:16 2014
>> ...
>> Is this behaviour of Samba as expected or am I missing something?
>> Because the way as I see it, the file shouldn't be locked by a
>> readonly user.
> Yeah, we used to think so too :-). Unfortunately these
> are Windows semantics, so we have to match them.

Thank you for your answer.
Does anybody know a workaround or has some experience with this kind of 


More information about the samba mailing list