Home | History | Annotate | Line # | Download | only in ftpd
ftpusers revision 1.2
      1  1.2  lukem #	$NetBSD: ftpusers,v 1.2 2000/01/09 13:19:19 lukem Exp $
      2  1.1  lukem #
      3  1.1  lukem # example /etc/ftpusers
      4  1.1  lukem #
      5  1.1  lukem 
      6  1.1  lukem # prevent the following from logging in:
      7  1.1  lukem #	- users `root' and `toor'
      8  1.2  lukem #	- members of the group `noftp'
      9  1.2  lukem #	- connections from 10.0.0.0/8
     10  1.1  lukem #	- connections from *.spammer.com
     11  1.1  lukem #
     12  1.1  lukem root			deny
     13  1.1  lukem toor			deny
     14  1.1  lukem *:noftp			deny
     15  1.2  lukem *@10.0.0.0/8		deny
     16  1.1  lukem *@*.spammer.com		deny
     17  1.1  lukem 
     18  1.2  lukem # anonymous ftp connections from *.netbsd.org and 204.152.186.0/24 go into
     19  1.2  lukem # class `localguest'
     20  1.1  lukem #
     21  1.2  lukem ftp@*.netbsd.org	allow	localguest
     22  1.2  lukem ftp (a] 204.152.186.0/24	allow	localguest
     23  1.1  lukem 
     24  1.1  lukem # permit anonymous ftp connections from elsewhere (both entries are required,
     25  1.2  lukem # for backwards compatibility, although `ftp' is the user checked in other
     26  1.2  lukem # rules)
     27  1.1  lukem #
     28  1.1  lukem ftp			allow
     29  1.1  lukem anonymous		allow
     30  1.1  lukem 
     31  1.2  lukem # users who are members of a group name which ends with `src', connecting
     32  1.2  lukem # from any host in the *.netbsd.org domain become class `source'
     33  1.1  lukem #
     34  1.1  lukem *:*src@*.netbsd.org	allow	source
     35  1.1  lukem 
     36  1.1  lukem # prevent all other users
     37  1.1  lukem #
     38  1.1  lukem *			deny
     39