forcecreatemode.xml   [plain text]


<samba:parameter name="force create mode"
                 context="S"
                 xmlns:samba="http://samba.org/common">
<listitem>
    <para>This parameter specifies a set of UNIX mode bit 
    permissions that will <emphasis>always</emphasis> be set on a 
    file created by Samba. This is done by bitwise 'OR'ing these bits onto 
    the mode bits of a file that is being created or having its 
    permissions changed. The default for this parameter is (in octal) 
    000. The modes in this parameter are bitwise 'OR'ed onto the file 
    mode after the mask set in the <parameter moreinfo="none">create mask</parameter> 
    parameter is applied.</para>
		
    <para>See also the parameter <link linkend="CREATEMASK"><parameter moreinfo="none">create 
    mask</parameter></link> for details on masking mode bits on files.</para>

    <para>See also the <link linkend="INHERITPERMISSIONS"><parameter moreinfo="none">inherit 
    permissions</parameter></link> parameter.</para>

    <para>Default: <command moreinfo="none">force create mode = 000</command></para>

    <para>Example: <command moreinfo="none">force create mode = 0755</command></para>

    <para>would force all created files to have read and execute 
    permissions set for 'group' and 'other' as well as the 
    read/write/execute bits set for the 'user'.</para>
</listitem>
</samba:parameter>