ftphosts.4 (2010 09)
f
ftphosts(4) ftphosts(4)
NAME
ftphosts - ftpd individual user host access file
SYNOPSIS
/etc/ftpd/ftphosts
DESCRIPTION
The /etc/ftpd/ftphosts
file is used to allow or deny access to certain accounts from various hosts.
Access Capabilities
The formats to allow and deny access are described in this section.
allow username addrglob [ addrglob ... ]
Only allow host(s) matching addrglob to log in as username . addrglob is a globbed domain name or
a globbed numeric address.
deny username addrglob [ addrglob ... ]
Always deny host(s) matching addrglob to log in as username . addrglob is a globbed domain name
or a globbed numeric address.
A username of
anonymous or ftp specifies the anonymous user.
The addrglob can also be specified as address/cidr or address:netmask. For example:
10.0.0.0/8 or 10.0.0.0:255.0.0.0
Specifying Both allow and deny Rules
To allow a user to login from anywhere except the listed hosts, both allow and deny rules are required.
The following example denies the user
sam from logging in from the host 131.211.32.32
, but allows
login from all other hosts:
deny sam 131.211.32.32
allow sam *
EXAMPLES
Allow the user, bartm, to login from the host named some.domain and from all hosts with numeric
addresses starting with 131.211.32:
allow bartm some.domain 131.211.32.*
Deny (do not allow) the user, fred, to login from the host named other.domain and from all hosts
with numeric addresses starting with 131.112.23:
deny fred other.domain 135.112.23.*
Allow the user, sam, to login from the host named any.domain:
allow sam any.domain
FILES
/etc/ftpd/ftphosts
AUTHOR
ftphosts was developed by the Washington University, St. Louis, Missouri.
SEE ALSO
ftpd(1M), ftpaccess(4), ftpconversions(4), ftpshut(1).
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1