From: TJ S. <cas...@us...> - 2012-03-26 16:25:58
|
Update of /cvsroot/pdd/www.proftpd.org/docs/modules In directory vz-cvs-3.sog:/tmp/cvs-serv11269/modules Modified Files: mod_core.html Log Message: Updating website copies of mod_core, Umask docs. Index: mod_core.html =================================================================== RCS file: /cvsroot/pdd/www.proftpd.org/docs/modules/mod_core.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mod_core.html 19 Mar 2012 18:27:45 -0000 1.2 +++ mod_core.html 26 Mar 2012 16:25:56 -0000 1.3 @@ -46,6 +46,7 @@ <li><a href="#TraceLog">TraceLog</a> <li><a href="#TraceOptions">TraceOptions</a> <li><a href="#TransferLog">TransferLog</a> + <li><a href="#Umask">Umask</a> </ul> <hr> @@ -1055,6 +1056,40 @@ <p> <hr> +<h2><a name="Umask">Umask</a></h2> +<strong>Syntax:</strong> Umask <em>file-umask [dir-umask]</em><br> +<strong>Default:</strong> None<br> +<strong>Context:</strong> "server config", <VirtualHost>, <Global>, <Anonymous>, .ftpaccess<br> +<strong>Module:</strong> mod_core<br> +<strong>Compatibility:</strong> 0.99.0 and later + +<p> +The <code>Umask</code> directive sets the mask applied to newly created file +and directory permissions. Any parameters supplied must be an octal number, +in the format <code>0<i>xxx</i></code>. + +<p> +An optional second <em>dir-umask</em> parameter can specify a different +<code>Umask</code> to be used when creating directories, rather than files. +If this second parameter is not used, directories are created using the +<em>file-umask</em> value from the first parameter. For more information on +umasks, consult your operating system documentation/man pages. + +<p> +<b>Note</b>: ProFTPD will <b>not</b> create files that have the executable bit +enabled; this is a security-driven design decision. The permissions of an +uploaded file can be changed by issuing a <code>SITE CHMOD</code> command, +<i>e.g.</i>: +<pre> + SITE CHMOD 0755 /path/to/uploaded/file +</pre> + +<p> +The <code>Umask</code> <a href="../howto/Umask.html">howto</a> also talks about +umasks in greater detail. + +<p> +<hr> <h2><a name="Installation">Installation</a></h2> The <code>mod_core</code> module is <b>always</b> installed. |