2 .\" Copyright (C) 2003, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH FTPADDHOST 1M "May 1, 2003"
8 ftpaddhost \- set up a virtual FTP host
12 \fBftpaddhost\fR \fB-c\fR | \fB-l\fR [\fB-b\fR] [\fB-x\fR \fIxferlog\fR] \fIhostname\fR \fIroot_dir\fR
18 The \fBftpaddhost\fR script is executed by the super user to set up virtual FTP
19 hosts. The \fBftpaddhost\fR command configures the virtual host \fIhostname\fR
20 under directory \fIroot_dir\fR. The value of \fIhostname\fR can be an IP
21 address or the name of a host.
25 The \fBftpaddhost\fR script supports the following options:
32 Create a banner for the virtual host. This option is useful to confirm that the
33 virtual host is working.
42 Configure complete virtual hosting. This option allows each virtual host to
43 have its own version of the \fBftpaccess\fR, \fBftpconversions\fR,
44 \fB\fR\fBftpgroups\fR, \fBftphosts\fR, and \fBftpusers\fR files. The master
45 version of each of these configuration files is copied from the \fB/etc/ftpd\fR
46 directory and placed in the \fB/etc/ftpd/virtual-ftpd/\fIhostname\fR\fR
47 directory. If the \fB/etc/ftpusers\fR file exists it is appended to the virtual
48 \fBftpusers\fR file. If a virtual host lacks its own version of a configuration
49 file, the master version is used.
58 Configure limited virtual hosting. This option allows a small number of
59 parameters to be configured differently for a virtual host. See the
60 \fBvirtual\fR keyword on the \fBftpaccess\fR(4) manual page.
66 \fB\fB-x\fR \fIxferlog\fR\fR
69 Create a logfile entry such that the transfer logs for the virtual host are
70 written to the specified file. An absolute path must be specified for the
77 The following operands are supported:
84 The host name or IP address of the virtual server.
93 The absolute pathname of the directory under which the virtual server is set
100 The following exit values are returned:
107 Successful completion
116 Improper usage of the command
132 \fB\fB/etc/ftpd/virtual-ftpd/\fIhostname\fR\fR\fR
136 The configuration files directory for the virtual host \fIhostname\fR.
142 See \fBattributes\fR(5) for descriptions of the following attributes:
150 ATTRIBUTE TYPE ATTRIBUTE VALUE
152 Interface Stability Evolving
158 \fBftpconfig\fR(1M), \fBin.ftpd\fR(1M), \fBftpaccess\fR(4),
159 \fBftpconversions\fR(4), \fBftpgroups\fR(4), \fBftphosts\fR(4),
160 \fBftpusers\fR(4), \fBxferlog\fR(4), \fBattributes\fR(5)