1ftpaddhost(1M) System Administration Commands ftpaddhost(1M)
2
3
4
6 ftpaddhost - set up a virtual FTP host
7
9 ftpaddhost -c | -l [-b] [-x xferlog] hostname root_dir
10
11
13 The ftpaddhost script is executed by the super user to set up virtual
14 FTP hosts. The ftpaddhost command configures the virtual host hostname
15 under directory root_dir. The value of hostname can be an IP address or
16 the name of a host.
17
19 The ftpaddhost script supports the following options:
20
21 -b Create a banner for the virtual host. This option is use‐
22 ful to confirm that the virtual host is working.
23
24
25 -c Configure complete virtual hosting. This option allows
26 each virtual host to have its own version of the ftpac‐
27 cess, ftpconversions, ftpgroups, ftphosts, and ftpusers
28 files. The master version of each of these configuration
29 files is copied from the /etc/ftpd directory and placed
30 in the /etc/ftpd/virtual-ftpd/hostname directory. If the
31 /etc/ftpusers file exists it is appended to the virtual
32 ftpusers file. If a virtual host lacks its own version of
33 a configuration file, the master version is used.
34
35
36 -l Configure limited virtual hosting. This option allows a
37 small number of parameters to be configured differently
38 for a virtual host. See the virtual keyword on the
39 ftpaccess(4) manual page.
40
41
42 -x xferlog Create a logfile entry such that the transfer logs for
43 the virtual host are written to the specified file. An
44 absolute path must be specified for the xferlog file.
45
46
48 The following operands are supported:
49
50 hostname The host name or IP address of the virtual server.
51
52
53 root_dir The absolute pathname of the directory under which the vir‐
54 tual server is set up.
55
56
58 The following exit values are returned:
59
60 0 Successful completion
61
62
63 1 Improper usage of the command
64
65
66 2 Command failed
67
68
70 /etc/ftpd/virtual-ftpd/hostname
71
72 The configuration files directory for the virtual host hostname.
73
74
76 See attributes(5) for descriptions of the following attributes:
77
78
79
80
81 ┌─────────────────────────────┬─────────────────────────────┐
82 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
83 ├─────────────────────────────┼─────────────────────────────┤
84 │Availability │SUNWftpu │
85 ├─────────────────────────────┼─────────────────────────────┤
86 │Interface Stability │Evolving │
87 └─────────────────────────────┴─────────────────────────────┘
88
90 ftpconfig(1M), in.ftpd(1M), ftpaccess(4), ftpconversions(4), ftp‐
91 groups(4), ftphosts(4), ftpusers(4), xferlog(4), attributes(5)
92
93
94
95SunOS 5.11 1 May 2003 ftpaddhost(1M)