From: TJ S. <cas...@us...> - 2012-06-01 16:28:50
|
Update of /cvsroot/pdd/www.proftpd.org/docs/howto In directory vz-cvs-3.sog:/tmp/cvs-serv3535 Modified Files: Limit.html Log Message: Updated website copy of Limit howto. Index: Limit.html =================================================================== RCS file: /cvsroot/pdd/www.proftpd.org/docs/howto/Limit.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Limit.html 17 Feb 2010 16:08:21 -0000 1.3 +++ Limit.html 1 Jun 2012 16:28:48 -0000 1.4 @@ -37,7 +37,7 @@ The FTP command groups are: <ul> <li>ALL<br> - <i>Covering</i>: all FTP commands + <i>Covering</i>: all FTP commands (but <b>not</b> <code>LOGIN</code>) <p> <li>DIRS<br> @@ -255,8 +255,20 @@ </Limit> </IfUser> </pre> + +<p> +Or if you want to have a specific IP address, rather than a range, you can +do this without classes (but still requiring <code>mod_ifsession</code>): +<pre> + <IfUser dave> + <Limit LOGIN> + Deny from 1.2.3.4 + </Limit> + </IfUser> +</pre> + Note that the same effect can be achieved by using the -<a href="../../contrib/mod_wrap.html">mod_wrap</a> module to configure +<a href="../../contrib/mod_wrap2.html">mod_wrap2</a> module to configure user-specific allow/deny files. <p> @@ -360,6 +372,18 @@ section). <p> +What if you want to make sure the directory cannot be renamed, in addition to +ensuring that it cannot be deleted? Simply include the <code>RNFR</code> and +<code>RNTO</code> FTP commands in the list of denied commands, <i>e.g.</i>: +<pre> + <Directory /path/to/dir> + <Limit RMD RNFR RNTO XRMD> + DenyAll + </Limit> + </Directory> +</pre> + +<p> <hr> Last Updated: <i>$Date$</i><br> <hr> |