3 solaris, 1 creating the anonymous ftp account, 2 create the ftp directory tree – Allied Telesis Telesyn AlliedView NMS System 9.0 User Manual
Page 54: 3 solaris -2, 1 creating the anonymous ftp account -2, 2 create the ftp directory tree -2

Solaris
Creating the Anonymous FTP Account
AlliedView NMS Installation Guide (Appendix A - Enabling Anonymous FTP)
10-2
10.3 Solaris
Configuring FTP on Solaris can be a complex and difficult task if your system has been altered from the original
installation. On the other hand, it's a relatively straight-forward task if your system does not deviate from the
default Solaris installation.
Due to variations among UNIX and Solaris systems, however, this procedure cannot be reliably automated.
What follows is a procedure that can be followed on an unaltered system that will configure anonymous FTP
service suitable for AlliedView NMS.
This procedure assumes the ftp root directory will be
/opt/ftp
. Shell commands to execute this procedure are
provided at the end of this section. If your system has been altered from the original installation or
/opt
has not
been mounted with enough memory to handle file transfers (100 MB), you will have to modify this procedure
accordingly. FTP configuration is extensively documented in the Solaris man pages and on the web. For more
information, options, details, and security considerations, see the man pages for in
.ftpd
or
ftpd
and
ftpac-
cess
or contact your system administrator.
Note:
This procedure may require 30 minutes or more-depending on your particular Solaris
installation and how much it differs from the default installation.
The AlliedView NMS will need read/write file access to the FTP pub directory and FTP clients (iMG/RG and
GenBand) will need retrieve and upload server permissions.
Note:
The following procedure assumes the ftp home directory and anonymous ftp root directory will
be /opt/ftp. If you decide to use a different directory because of system constraints, then
replace all occurrences of /opt/ftp with your directory name throughout the procedure.
10.3.1 Creating the Anonymous FTP Account
1.
Begin the configuration procedure by logging in as root and creating the ftp account with the useradd com-
mand. (Shell commands are listed at the end of this section)
2.
Set the
/etc/passwd
and
/etc/shadow
entries for anonymous usage. The ftp entry in
/etc/passwd
needs to look something like:
ftp:x:30000:30000:Anonymous FTP:/opt/ftp:/nosuchshell
Note:
The 30000 will be some number created by the useradd command and already in the file.
Don't change it to 30000. Use the number already there, but change the text that follows the
30000.
3.
The ftp entry in /etc/shadow should look like:
ftp:NP:6445::::::
10.3.2 Create the FTP Directory Tree
Now create the ftp directory tree, configure the ls command, copy shared libraries, and set file permissions.