This page discusses the TFTP file transfer protocol
on Sun systems.
TFTP File Transfer Protocol
Typical Sun installations do not start TFTP. This is the
ViewStation's default protocol. A startup line for TFTP is present in
the /etc/inetd.conf file, but is usually commented out. With the comment
character removed, the TFTP protocol is run in "secure" mode. If you
want to run TFTP as your file transfer protocol for the View Station,
you must verify that it is running, and then decide if you want to use
it in secure mode or not.
To start your TFTP service on the Sun (you must be root user
to do these steps):
1. Check to see if TFTP was started.
Look in the
/etc/inetd.conf file to see if the TFTP line has a comment character.
The line looks like this:
#tftp dgram udp wait root /usr/etc/in.tftpd
in.tftpd -s /tftpboot
2. Remove the comment
character ( # ) from the beginning of the line.
3. Restart the inetd process.
Find the process
identification number (PID) from the following command: ps
-aux | grep inetd
Then issue this command:
kill -1<PID>
This restarts the inetd process and starts the TFTP daemon.
TFTP in Secure Mode
If the TFTP process is in secure mode (check for the "-s
/tftpboot" at the end of the line), the TFTP process must change
to the /tftpboot directory to move requested files. If your files are
not in that directory, or you don't want to put them there, or you want
to transfer files from other directories, you will have to make some
changes.
You have several options:
Use secure TFTP - this means that all your files must be
located in the /tftpboot directory. This partition is usually fairly
small, so check the available storage space with the "df" command. The
HDSware tape requires about 21 MB for a complete installation, or about
9 MB for a minimal installation.
Note that the Sun prepends
/tftpboot to whatever directory you specify in your paths, so take this
into account when you enter your HDSware path.
Use unsecure TFTP - remove "-s /tftpboot"
from the TFTP line and restart the daemon. This means that TFTP is not
secure and can move files from or to any directory on the system. This
is convenient, but you may want to keep the security features.
Link your files to /tftpboot - for instance, you could
create a tftpboot directory in your /usr partition, /usr/tftpboot, and
link it to /tftpboot, as follows: cp -r /tftpboot /usr
rm -rf /tftpboot
ln -s /usr/tftpboot /tftpboot
Paths with Secure TFTP
If you use Secure TFTP note that any TFTP request does a change
directory command to the secure directory, usually /tftpboot, and this
directory is automatically prepended to your path. This means that your
path should not contain the /tftpboot directory, since it will be added
automatically.
If your server code file is in
/tftpboot/HDSware/hds-fx/image/Vnn.hds, for example, your HDSware path
should be entered as /HDSware only, not /tftpboot/HDSware.
Return to Section Heading Page
Return to the Home Page
If you need more information than is available here, you can reach
HDS via email at info@hds.com, or
call us at 1.800.HDS.1551 in the USA, or at +610.277.8300 from outside
the US. For questions or problems regarding the HDS WWW page, contact
webmaster@hds.com.
© 1996 by HDS Network Systems
Inc.