1 <samba:parameter name="directory mask"
4 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
5 <synonym>directory mode</synonym>
7 <para>This parameter is the octal modes which are
8 used when converting DOS modes to UNIX modes when creating UNIX
11 <para>When a directory is created, the necessary permissions are
12 calculated according to the mapping from DOS modes to UNIX permissions,
13 and the resulting UNIX mode is then bit-wise 'AND'ed with this
14 parameter. This parameter may be thought of as a bit-wise MASK for
15 the UNIX modes of a directory. Any bit <emphasis>not</emphasis> set
16 here will be removed from the modes set on a directory when it is
19 <para>The default value of this parameter removes the 'group'
20 and 'other' write bits from the UNIX mode, allowing only the
21 user who owns the directory to modify it.</para>
23 <para>Following this Samba will bit-wise 'OR' the UNIX mode
24 created from this parameter with the value of the <smbconfoption name="force directory mode"/> parameter.
25 This parameter is set to 000 by default (i.e. no extra mode bits are added).</para>
28 New in Samba 4.0.0. This mask is applied whenever permissions are changed on a directory. To allow clients full control
29 over permission changes it should be set to 0777.
33 <related>force directory mode</related>
34 <related>create mask</related>
35 <related>inherit permissions</related>
36 <value type="default">0755</value>
37 <value type="example">0775</value>