WU-FTPD 2.6.1 release notes (5900-1739, May 2011)
Example 7 The site-exec-max-lines Clause
The following are some examples for the site-exec-max-lines clause:
site-exec-max-lines 200 remote
site-exec-max-lines 0 local
site-exec-max-lines 25
Example 7 contains three example statements for the site-exec-max-lines clause. The
first example limits the output from SITE EXEC (therefore SITE INDEX) to 200 lines for
remote users. The second example specifies no limit for local users. The third example sets a
limit of 25 lines for all other users.
• Root Directory Specification
This feature specifies the root directory when a user logs in as an anonymous or guest user.
The syntax for specifying the root directory is as follows:
anonymous-root <root-dir> [ class ]
guest-root <root-dir> [ uid-range ]
Example 8 The anonymous-root Clause
The following are examples of the anonymous-root clause:
anonymous-root /home/ftp
anonymous-root /home/localftp localnet
The first example changes the root directory of all the anonymous users to the directory
/home/ftp, the anonymous user’s current working directory being the home directory. If an
FTP user exists in the /home/ftp/etc/passwd file, the user’s 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 user’s home
directory in /home/localftp/etc/passwd specifies the initial current working directory.
Example 9 The guest-root Clause
An example of 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, see ftpd(1M).
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.
WU-FTPD 2.6.1 features 27