Home | History | Annotate | Line # | Download | only in ftpd
      1 #	$NetBSD: ftpd.conf,v 1.4 2000/01/09 13:19:19 lukem Exp $
      2 #
      3 # example /etc/ftpd.conf
      4 
      5 # Check PORT command for validity; prevents denial of service attempt.
      6 #
      7 checkportcmd	all
      8 
      9 # Use `guest' as a template for `localguest'; any following `guest' entries
     10 # will be used for `localguest' too.
     11 #
     12 template	localguest	guest
     13 
     14 # For anonymous connections, when a directory is entered show the contents
     15 # of `.message' if it exists, and notify about any files that start
     16 # with `README'.
     17 #
     18 display		guest	.message
     19 notify		guest	README*
     20 
     21 # Prevent uploads & modification commands for anonymous connections
     22 #
     23 upload		guest	off
     24 
     25 # Limit transfers for users in `slowmo' class to 5 KB/s
     26 #
     27 rateget		slowmo	5k
     28 rateput		slowmo	5k
     29 
     30 # Limit the number of simultaneous `guest' class connections to 50,
     31 # and display /etc/ftptoomany when this limit is reached.
     32 # As `localguest' uses the `guest' settings via the template above, override
     33 # this specifically for `localguest' entries to unlimited.
     34 #
     35 limit		guest		50	ftptoomany
     36 limit		localguest	-1
     37 
     38 # Support automatic conversions.
     39 # The first entry supports compression of files, and there's no suppression
     40 # character. `%s' is replaced by the filename.
     41 # The next two entries support tar-ing and tar+gzip of files and directories,
     42 # unless `.notar' exists in the current directory.
     43 # The `--' in the command strings should prevent a filename with a leading
     44 # `-' being interpreted as an argument to gzip/tar.
     45 # For anonymous connections, ~ftp/usr/bin should be a symlink to ~ftp/bin,
     46 # and gzip and tar should exist in the latter directory as statically
     47 # linked executables, to avoid the effort of setting up shared libraries
     48 # correctly under ~ftp.
     49 #
     50 conversion	all	.gz	f	.	/usr/bin/gzip -c -- %s
     51 conversion	all	.tar	df	.notar	/usr/bin/tar -cf - -- %s
     52 conversion	all	.tar.gz	df	.notar	/usr/bin/tar -zcf - -- %s
     53