[Samba] Samba 3.4.3 and DOS read only

Jeremy Allison jra at samba.org
Thu Aug 16 16:53:32 MDT 2012


On Thu, Aug 16, 2012 at 11:48:00PM +0100, Jonathan Buzzard wrote:
> Jim Gallagher wrote:
> >Hi,
> >
> >Is there an easy way to get Samba v3.4.3 to respond to client requests to
> >change the read-only attribute by setting/unsetting the unix write bits?
> >For the shares in question, the unix permissions are not really important,
> >but managing the RO attribute is. It appears that this was the default
> >behavior in (very?) old Samba versions, but my server appears to simply
> >ignore RO attribute change requests.
> 
> There is, you need the following and your file system mounted with
> extended attributes enabled
> 
> # store DOS attributes in extended attributes
>       ea support = yes
>       store dos attributes = yes
>       map readonly = no
>       map archive = no
>       map system = no
>       map hidden = no

No - that's the wrong way around ! In order to get Samba
to change the UNIX perms when DOS attributes change, you
need to set:

       ea support = no
       store dos attributes = no
       map readonly = yes

Then it should map the readonly bit into the user "w"
bit.

Jeremy


More information about the samba mailing list