1 <samba:parameter name="create mask"
4 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
6 <synonym>create mode</synonym>
8 <para>When a file is created, the necessary permissions are
9 calculated according to the mapping from DOS modes to UNIX
10 permissions, and the resulting UNIX mode is then bit-wise 'AND'ed
11 with this parameter. This parameter may be thought of as a bit-wise
12 MASK for the UNIX modes of a file. Any bit <emphasis>not</emphasis>
13 set here will be removed from the modes set on a file when it is
16 <para>The default value of this parameter removes the
17 'group' and 'other' write and execute bits from the UNIX modes.</para>
19 <para>Following this Samba will bit-wise 'OR' the UNIX mode created
20 from this parameter with the value of the <smbconfoption name="force create mode"/>
21 parameter which is set to 000 by default.</para>
23 <para>This parameter does not affect directory modes. See the
24 parameter <smbconfoption name="directory mode"/> for details.</para>
26 <para>Note that this parameter does not apply to permissions
27 set by Windows NT/2000 ACL editors. If the administrator wishes to enforce
28 a mask on access control lists also, they need to set the <smbconfoption name="security mask"/>.</para>
31 <related>force create mode</related>
32 <related>directory mode</related>
33 <related>inherit permissions</related>
35 <value type="default">0744</value>
36 <value type="example">0775</value>