Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/examples/ftpd * add example upload, rateget, rateput e...



details:   https://anonhg.NetBSD.org/src/rev/e6bbf166f993
branches:  trunk
changeset: 479901:e6bbf166f993
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Dec 26 09:38:47 1999 +0000

description:
* add example upload, rateget, rateput entries
* add `--' to the argument string for the conversion commands (to prevent
  filenames starting with `-' from being interpreted as options)

diffstat:

 share/examples/ftpd/ftpd.conf |  19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 4e461cf5b660 -r e6bbf166f993 share/examples/ftpd/ftpd.conf
--- a/share/examples/ftpd/ftpd.conf     Sun Dec 26 09:05:38 1999 +0000
+++ b/share/examples/ftpd/ftpd.conf     Sun Dec 26 09:38:47 1999 +0000
@@ -1,10 +1,10 @@
-#      $NetBSD: ftpd.conf,v 1.1 1998/06/06 01:28:33 lukem Exp $
+#      $NetBSD: ftpd.conf,v 1.2 1999/12/26 09:38:47 lukem Exp $
 #
 # example /etc/ftpd.conf
 
 # Check PORT command for validity; prevents denial of service attempt.
 #
-checkportcmd   guest
+checkportcmd   all
 
 # For anonymous connections, when a directory is entered show the contents
 # of `.message' if it exists, and notify about any files that start
@@ -13,10 +13,19 @@
 display                guest   .message
 notify         guest   README*
 
+# Prevent uploads & modification commands for anonymous connections
+#
+upload         guest   off
+
+# Limit transfers for users in `slowmo' class to 5 KB/s
+#
+rateget                slowmo  5k
+rateput                slowmo  5k
+
 # Support automatic conversions.
 # (For anonymous connections, ~ftp/usr/bin should be a symlink to ~ftp/bin,
 #  and gzip and tar should exist in the latter directory.)
 #
-conversion     all     .gz     f       .               /usr/bin/gzip -c %s
-conversion     all     .tar    df      .notar          /usr/bin/tar cf - %s
-conversion     all     .tar.gz df      .notar          /usr/bin/tar zcf - %s
+conversion     all     .gz     f       .       /usr/bin/gzip -c -- %s
+conversion     all     .tar    df      .notar  /usr/bin/tar -cf - -- %s
+conversion     all     .tar.gz df      .notar  /usr/bin/tar -zcf - -- %s



Home | Main Index | Thread Index | Old Index