From: TJ S. <cas...@us...> - 2010-01-05 16:58:55
|
Update of /cvsroot/pdd/www.proftpd.org/docs/howto In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv30227 Modified Files: CreateHome.html Log Message: Updating website copy of CreateHome howto. Index: CreateHome.html =================================================================== RCS file: /cvsroot/pdd/www.proftpd.org/docs/howto/CreateHome.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** CreateHome.html 17 Aug 2007 00:11:26 -0000 1.1 --- CreateHome.html 5 Jan 2010 16:58:45 -0000 1.2 *************** *** 42,46 **** The description for this configuration directive shows its parameters to be: <pre> ! CreateHome off|on [<mode>] [skel <path>] [dirmode <mode>] </pre> The first parameter is a simple Boolean, enabling or disabling the --- 42,46 ---- The description for this configuration directive shows its parameters to be: <pre> ! CreateHome off|on [<mode>] [skel <path>] [dirmode <mode>] [uid <uid>] [gid <gid>] </pre> The first parameter is a simple Boolean, enabling or disabling the *************** *** 99,102 **** --- 99,108 ---- <p> + The <code>uid</code> and <code>gid</code> parameters can be used to set the + ownership of the newly created parent directories, up to be <b>not</b> + including the home directory. By default, those created parent directories + are owned by root (UID 0 and GID 0). + + <p> Here are some examples (from the documentation) to help illustrate how one might use the <code>CreateHome</code> configuration directive: *************** *** 108,114 **** CreateHome on 711 ! <font color=green># Specify a mode of 711, and have the parent directories owned by a non-root UID/GID</font> CreateHome on 711 uid 100 gid 100 <font color=green># Specify a skeleton directory</font> CreateHome on skel /etc/ftpd/skel --- 114,123 ---- CreateHome on 711 ! <font color=green># Specify a mode of 711, and have the parent directories owned by a specific non-root UID/GID</font> CreateHome on 711 uid 100 gid 100 + <font color=green># Specify a mode of 711, and have the parent directories owned by the UID/GID of the logging-in user</font> + CreateHome on 711 uid ~ gid ~ + <font color=green># Specify a skeleton directory</font> CreateHome on skel /etc/ftpd/skel *************** *** 137,140 **** --- 146,168 ---- desired from the FTP daemon. + <p><a name="FAQ"></a> + <b>FAQ</b> + + <p> + <font color=red>Question</font>: Is it possible to have different permissions + for the <code>CreateHome</code> <em>mode</em> and <em>dirmode</em> based on the + group of the connecting user?<br> + <font color=blue>Answer</font>: Yes, if you use the <a href="http://www.proftpd.org/docs/contrib/mod_ifsession.html"><code>mod_ifsession</code></a> module. + For example: + <pre> + <IfGroup special> + CreateHome on 755 dirmode 755 + </IfGroup> + + <IfGroup !special> + CreateHome on 711 dirmode 711 + </IfGroup> + </pre> + <p> <hr> |