ftpaccess.4 (2010 09)
f
ftpaccess(4) ftpaccess(4)
NAME
ftpaccess - ftpd configuration file
SYNOPSIS
/etc/ftpd/ftpaccess
DESCRIPTION
The /etc/ftpd/ftpaccess
file is used to configure the operation of
ftpd (see ftpd (1M)).
Access Capabilities
autogroup groupname class [ class ... ]
If an
anonymous user is a member of any of class , the ftp server will perform a
setgid() to
groupname . This allows access to group-and-owner-read-only files and directories to a particular
class of anonymous users. groupname is a valid group from
/etc/group (or whatever mechanism
your
getgrent() library routine uses; see getgrent (3C)).
class class typelist addrglob [ addrglob ... ]
Define class of users, with source addresses of the form addrglob . Multiple members of class may
be defined. There may be multiple
class commands, listing additional members of the class. If
multiple
class commands can apply to the current session, the first one listed in the access file is
used. Failing to define a valid class for a host will cause access to be denied. typelist is a comma-
separated list of any of the keywords
anonymous, guest and real. If the real
keyword is
included, the class can match users using FTP to access real accounts, and if the
anonymous key-
word is included, the class can match users using anonymous FTP. The guest keyword matches
guest access accounts (see guestgroup below for more information)
addrglob may be a globbed domain name or a globbed numeric address. There can be multiple
addrglob ’s for this directive. To avoid confusion when you have multiple addrglob ’s, you can put all
the addrglob ’s in a file and specify the path of the file in place of the addrglob ’s.
Placing an exclamation (!) before an addrglob negates the test. For example:
class rmtuser real !*.example.com
will classify real users from outside the example.com domain as the class rmtuser. Use care
with this option. Remember, the result of each test is OR’ed with other tests on the line.
Note: addrglob can be an IPv4 glob address of the form n.n.n.n where n is either a decimal number
between 0 to 255 or an asterisk (
*). addrglob can also be an IPv6 address where asterisk (
*) is not
supported. The equivalent functionality of asterisk (
*) is provided in the form of the subnet prefix
followed by a forward slash (
/) and the prefix length.
This notation of addrglob as a glob address is applicable for all other
ftpaccess directives.
deny addrglob message_file
Always deny access to the host(s) matching addrglob . message_file is the file from which denial
message is displayed to the hosts that are denied access. addrglob may be
!nameserved to deny
access to sites without a working nameserver. It may also be the name of a file, starting with a
slash (/), which contains additional address globs, as well as in the form address:netmask or
address/cidr.
guestgroup groupname [ groupname ... ]
guestuser username [ username ... ]
realgroup groupname [ groupname ... ]
realuser username [ username ... ]
For
guestgroup,ifareal user is a member of any of groupname , the session is set up exactly as
with anonymous FTP. In other words, a chroot() is done, and the user is no longer permitted to
issue the USER and PASS commands. groupname is a valid group from /etc/group (or whatever
mechanism your getgrent() library routine uses).
The user’s home directory must be properly set up, exactly as anonymous FTP would be. The home
directory field of the passwd entry is divided into two directories. The first field is the root directory
which will be the argument to the
chroot call. The second half is the user’s home directory rela-
tive to the root directory. The two halves are separated by a /./.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1