1 <samba:parameter name="map read only"
4 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
7 This controls how the DOS read only attribute should be mapped from a UNIX filesystem.
11 This parameter can take three different values, which tell <citerefentry><refentrytitle>smbd</refentrytitle>
12 <manvolnum>8</manvolnum></citerefentry> how to display the read only attribute on files, where either
13 <smbconfoption name="store dos attributes"/> is set to <constant>No</constant>, or no extended attribute is
14 present. If <smbconfoption name="store dos attributes"/> is set to <constant>yes</constant> then this
15 parameter is <emphasis>ignored</emphasis>. This is a new parameter introduced in Samba version 3.0.21.
18 <para>The three settings are :</para>
22 <constant>Yes</constant> - The read only DOS attribute is mapped to the inverse of the user
23 or owner write bit in the unix permission mode set. If the owner write bit is not set, the
24 read only attribute is reported as being set on the file.
25 If the read only DOS attribute is set, Samba sets the owner, group and
26 others write bits to zero. Write bits set in an ACL are ignored by Samba.
27 If the read only DOS attribute is unset, Samba simply sets the write bit of the
32 <constant>Permissions</constant> - The read only DOS attribute is mapped to the effective permissions of
33 the connecting user, as evaluated by <citerefentry><refentrytitle>smbd</refentrytitle>
34 <manvolnum>8</manvolnum></citerefentry> by reading the unix permissions and POSIX ACL (if present).
35 If the connecting user does not have permission to modify the file, the read only attribute
36 is reported as being set on the file.
40 <constant>No</constant> - The read only DOS attribute is unaffected by permissions, and can only be set by
41 the <smbconfoption name="store dos attributes"/> method. This may be useful for exporting mounted CDs.
46 <value type="default">yes</value>