FTP configuration is comprised of the following steps:
Create the anonymous FTP directory. This directory contains the subdirectories and binaries required for FTP support, and is cloned to create each virtual host's root FTP directory.
Create the virtual host directory structure: This contains a cloned tree of the anonymous FTP directory as well as the FTP access file for the virtual host.
Solaris ISP Services installation has been completed
FTP has been registered with the Sun Internet Admistrator (see the online help for the Sun Internet Administrator Register Services Screen)
Sun Internet FTP Server is installed, but not configured
The virtual host has not been created
The directories /usr/sbin and /usr/lib are in your root $PATH.
The ISP anonymous FTP directory will be created as /opt/IspFtpDir. This is an example only; you need to determine the actual name and location
The FTP virtual host is myVH.org.This is an example only; you need to provide the actual virtual host name
The FTP virtual host root directory will be created in/export/home
Use ftpconfig(1m) to create the anonymous FTP directory:
ftpconfig -d /opt/IspFtpDir
This creates the following in the specified directory: bin/, dev/, etc/, pub/, usr/, var/, and Welcome. The directory bin/ is a symbolic link to /usr/bin, and Welcome is the welcome message displayed to the FTP user on successful login.
The ftpconfig(1m) command only needs to be run once regardless of the number of virtual hosts you need to create. Ensure you do not create the ISP anonymous FTP directory in /tmp.
Use ftpaddhost(1m) to create the virtual host directory:
ftpaddhost /opt/IspFtpDir /export/home/ myVH.org
This creates the directory /export/home/myVH.org. The contents of the anonymous FTP directory /opt/IspFtpDir are cloned to create the required file hierarchy within /export/home/myVH.org: dev/, etc/, pub/, usr/, var/, and the file Welcome .
The FTP access configuration file /etc/inet/ftpaccess is copied to the virtual host etc/ directory (/etc/inet/hostname/). Thus, each virtual host you define using ftpaddhost(1m) inherits the configuration defined in /etc/inet/ftpaccess.
Create the subscriber (real user) account in /etc/passwd. See passwd(4) and admintool(1M) for further information. Make note of the user ID associated with the user login name.
Edit /etc/group and enter a unique group ID for the subscriber (real user) account in the file, then add the user login name to the newly created group. See group(4) for further information.