1 1.2 lukem # $NetBSD: ftpd.conf,v 1.2 1999/12/26 09:38:47 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.2 lukem 25 1.1 lukem # Support automatic conversions. 26 1.1 lukem # (For anonymous connections, ~ftp/usr/bin should be a symlink to ~ftp/bin, 27 1.1 lukem # and gzip and tar should exist in the latter directory.) 28 1.1 lukem # 29 1.2 lukem conversion all .gz f . /usr/bin/gzip -c -- %s 30 1.2 lukem conversion all .tar df .notar /usr/bin/tar -cf - -- %s 31 1.2 lukem conversion all .tar.gz df .notar /usr/bin/tar -zcf - -- %s 32