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.
28 <constant>Permissions</constant> - The read only DOS attribute is mapped to the effective permissions of
29 the connecting user, as evaluated by <citerefentry><refentrytitle>smbd</refentrytitle>
30 <manvolnum>8</manvolnum></citerefentry> by reading the unix permissions and POSIX ACL (if present).
31 If the connecting user does not have permission to modify the file, the read only attribute
32 is reported as being set on the file.
36 <constant>No</constant> - The read only DOS attribute is unaffected by permissions, and can only be set by
37 the <smbconfoption name="store dos attributes"/> method. This may be useful for exporting mounted CDs.
42 <value type="default">yes</value>