HP-UX Remote Access Services Administrator's Guide

Example 2-9 The anonymous-root Clause
The following are examples for the anonymous-root clause:
anonymous-root /home/ftp
anonymous-root /home/localftp localnet
Example 2-9 contains two examples for the anonymous-root clause. The first example
changes the root directory of all the anonymous users to the directory /home/ftp, the
anonymous users current working directory being the home directory. If an FTP user
exists in the /home/ftp/etc/passwd file, the users current working directory is the
home directory. In the second example, the root directory of all the anonymous users
in the class localnet is changed to the directory/home/localftp, and the FTP
users home directory in /home/localftp/etc/passwd specifies the initial current
working directory.
Example 2-10 The guest-root Clause
An example for the guest-root clause is as follows:
guest-root /home/users guest-root /home/staff %100-999 sally
The example changes the root directory of all the guest users to the /home/users
directory. The directory of users in the range 100 through 999 and user sally is changed
to the /home/staff directory, and the current working directory is obtained from
their entries in the /home/staff/etc/passwd file.
Server Listening Clause
This clause enables the server to listen on any address. If you do not set this value, the
server listens for connections on all the IP addresses. HP recommends not to use this
clause because it breaks virtual hosting.
NOTE: This option works only when ftpd is running in a standalone mode. For more
information, type man 1M ftpd at the HP-UX prompt.
The syntax for enabling the server to listen is as follows:
daemonaddress <address>
For detailed information on all the clauses in the /etc/ftpd/ftpaccess utility, type
man 4 ftpaccess at the HP-UX prompt.
56 Configuring FTP