2000-01-09 16:19:19 +03:00
|
|
|
# $NetBSD: ftpusers,v 1.2 2000/01/09 13:19:19 lukem Exp $
|
2000-01-08 16:30:59 +03:00
|
|
|
#
|
|
|
|
# example /etc/ftpusers
|
|
|
|
#
|
|
|
|
|
|
|
|
# prevent the following from logging in:
|
|
|
|
# - users `root' and `toor'
|
2000-01-09 16:19:19 +03:00
|
|
|
# - members of the group `noftp'
|
|
|
|
# - connections from 10.0.0.0/8
|
2000-01-08 16:30:59 +03:00
|
|
|
# - connections from *.spammer.com
|
|
|
|
#
|
|
|
|
root deny
|
|
|
|
toor deny
|
|
|
|
*:noftp deny
|
2000-01-09 16:19:19 +03:00
|
|
|
*@10.0.0.0/8 deny
|
2000-01-08 16:30:59 +03:00
|
|
|
*@*.spammer.com deny
|
|
|
|
|
2000-01-09 16:19:19 +03:00
|
|
|
# anonymous ftp connections from *.netbsd.org and 204.152.186.0/24 go into
|
|
|
|
# class `localguest'
|
2000-01-08 16:30:59 +03:00
|
|
|
#
|
2000-01-09 16:19:19 +03:00
|
|
|
ftp@*.netbsd.org allow localguest
|
|
|
|
ftp@204.152.186.0/24 allow localguest
|
2000-01-08 16:30:59 +03:00
|
|
|
|
|
|
|
# permit anonymous ftp connections from elsewhere (both entries are required,
|
2000-01-09 16:19:19 +03:00
|
|
|
# for backwards compatibility, although `ftp' is the user checked in other
|
|
|
|
# rules)
|
2000-01-08 16:30:59 +03:00
|
|
|
#
|
|
|
|
ftp allow
|
|
|
|
anonymous allow
|
|
|
|
|
2000-01-09 16:19:19 +03:00
|
|
|
# users who are members of a group name which ends with `src', connecting
|
|
|
|
# from any host in the *.netbsd.org domain become class `source'
|
2000-01-08 16:30:59 +03:00
|
|
|
#
|
|
|
|
*:*src@*.netbsd.org allow source
|
|
|
|
|
|
|
|
# prevent all other users
|
|
|
|
#
|
|
|
|
* deny
|