Source-Changes-HG archive

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

[src/trunk]: src/share/examples/ftpd sample ftpusers with lots of examples on...



details:   https://anonhg.NetBSD.org/src/rev/7772d56aa571
branches:  trunk
changeset: 480276:7772d56aa571
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sat Jan 08 13:30:59 2000 +0000

description:
sample ftpusers with lots of examples on the syntax

diffstat:

 share/examples/ftpd/Makefile |   4 ++--
 share/examples/ftpd/ftpusers |  35 +++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r a5f611668808 -r 7772d56aa571 share/examples/ftpd/Makefile
--- a/share/examples/ftpd/Makefile      Sat Jan 08 13:17:17 2000 +0000
+++ b/share/examples/ftpd/Makefile      Sat Jan 08 13:30:59 2000 +0000
@@ -1,9 +1,9 @@
-#      $NetBSD: Makefile,v 1.3 1999/02/13 02:54:35 lukem Exp $
+#      $NetBSD: Makefile,v 1.4 2000/01/08 13:30:59 lukem Exp $
 
 .include <bsd.own.mk>
 
 .if ${MKSHARE} != "no"
-FILES= ftpd.conf
+FILES= ftpd.conf ftpusers
 FILESDIR=/usr/share/examples/ftpd
 .endif
 MKOBJ= no
diff -r a5f611668808 -r 7772d56aa571 share/examples/ftpd/ftpusers
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/share/examples/ftpd/ftpusers      Sat Jan 08 13:30:59 2000 +0000
@@ -0,0 +1,35 @@
+#      $NetBSD: ftpusers,v 1.1 2000/01/08 13:31:00 lukem Exp $
+#
+# example /etc/ftpusers
+#
+
+# prevent the following from logging in:
+#      - users `root' and `toor'
+#      - group `noftp'
+#      - connections from 127.0.0.0/8 (i.e, localhost)
+#      - connections from *.spammer.com
+#
+root                   deny
+toor                   deny
+*:noftp                        deny
+*@127.0.0.0/8          deny
+*@*.spammer.com                deny
+
+# anonymous ftp connections from *.netbsd.org go into class `localanon'
+#
+ftp@*.netbsd.org       allow   localanon
+
+# permit anonymous ftp connections from elsewhere (both entries are required,
+# for backwards compatibility)
+#
+ftp                    allow
+anonymous              allow
+
+# users who are members of a group name which ends with `src' connecting
+# from any host in the netbsd.org domain become class `source'
+#
+*:*src@*.netbsd.org    allow   source
+
+# prevent all other users
+#
+*                      deny



Home | Main Index | Thread Index | Old Index