1 # $NetBSD: ftpd.conf,v 1.3 2000/01/08 13:17:17 lukem Exp $
3 # example /etc/ftpd.conf
5 # Check PORT command for validity; prevents denial of service attempt.
9 # Use `guest' as a template for `localguest'; any following `guest' entries
10 # will be used for `localguest' too.
12 template localguest guest
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
18 display guest .message
21 # Prevent uploads & modification commands for anonymous connections
25 # Limit transfers for users in `slowmo' class to 5 KB/s
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.
35 limit guest 50 ftptoomany
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.
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