Home | History | Annotate | Line # | Download | only in ftpd
ftpd.conf revision 1.3
      1  1.3  lukem #	$NetBSD: ftpd.conf,v 1.3 2000/01/08 13:17:17 lukem Exp $
      2  1.1  lukem #
      3  1.1  lukem # example /etc/ftpd.conf
      4  1.1  lukem 
      5  1.1  lukem # Check PORT command for validity; prevents denial of service attempt.
      6  1.1  lukem #
      7  1.2  lukem checkportcmd	all
      8  1.1  lukem 
      9  1.1  lukem # For anonymous connections, when a directory is entered show the contents
     10  1.1  lukem # of `.message' if it exists, and notify about any files that start
     11  1.1  lukem # with `README'.
     12  1.1  lukem #
     13  1.1  lukem display		guest	.message
     14  1.1  lukem notify		guest	README*
     15  1.1  lukem 
     16  1.2  lukem # Prevent uploads & modification commands for anonymous connections
     17  1.2  lukem #
     18  1.2  lukem upload		guest	off
     19  1.2  lukem 
     20  1.2  lukem # Limit transfers for users in `slowmo' class to 5 KB/s
     21  1.2  lukem #
     22  1.2  lukem rateget		slowmo	5k
     23  1.2  lukem rateput		slowmo	5k
     24  1.3  lukem 
     25  1.3  lukem # Limit the number of simultaneous `foo' class connections to 50,
     26  1.3  lukem # and display /etc/ftptoomany when this limit is reached
     27  1.3  lukem #
     28  1.3  lukem limit		foo	50	ftptoomany
     29  1.2  lukem 
     30  1.1  lukem # Support automatic conversions.
     31  1.1  lukem # (For anonymous connections, ~ftp/usr/bin should be a symlink to ~ftp/bin,
     32  1.1  lukem #  and gzip and tar should exist in the latter directory.)
     33  1.1  lukem #
     34  1.2  lukem conversion	all	.gz	f	.	/usr/bin/gzip -c -- %s
     35  1.2  lukem conversion	all	.tar	df	.notar	/usr/bin/tar -cf - -- %s
     36  1.2  lukem conversion	all	.tar.gz	df	.notar	/usr/bin/tar -zcf - -- %s
     37