HP-UX IP Address and Client Management Administrator's Guide (October 2009)
Configuring the TFTP Server
Configuring the TFTP server, tftpd, on your system allows remote clients that support TFTP
to access files on your system in a particular location. You can configure tftpd either manually
or by using HP SMH. To manually configure tftpd, you must uncomment the tftp entry in
the /etc/inetd.conf file. If you do not specify the path options for the tftp entry in the
/etc/inetd.conf file, you must create a pseudouser tftp in the /etc/passwd file. For more
information, type man 1M tftpd at the HP-UX prompt.
If you use HP SMH to configure your system as a BOOTP server, your system is automatically
configured as a TFTP server. The following section explains how to manually configure and
verify tftpd.
NOTE: You must log in as a root user to configure the TFTP server.
Procedure for Configuring tftpd
To manually configure tftpd, you can follow either of the following methods:
Method 1
Add the user tftp to the /etc/passwd file.
For example:
tftp:*:510:10:TFTP:/home/tftpdir:/usr/bin/false
The example indicates that the user tftp has access only to the /home/tftpdir directory on
the client system. If you do not specify the user tftp in the /etc/passwd file, tftpd has root
access to the files or directories that you specify in the entry for tftp in the/etc/inetd.conf
file. If a tftp entry exists in the /etc/passwd file, tftpd cannot read or write files unless they
are readable or writeable by the user tftp.
If you create an /etc/passwd entry for the user tftp, tftpd first looks for a file relative to
the home directory of the user tftp. If tftpd does not find the file in the home directory, then
it looks for the file relative to the paths specified with the tftpd command. If you want to give
remote systems permission to retrieve a file through TFTP, the file must be readable by the user
tftp. If you want to give remote systems permission to transmit a file to your system through
TFTP, the file must be writeable by the user tftp.
For example, create a home directory for the user tftp, make the user tftp the directory owner,
and ensure that the directory gives the user tftp read, write, and execute permissions. For
example:
$ mkdir /home/tftpdir$
$ chown tftp /home/ftpdir
$ chgrp guest /home/tftpdir
$ chmod 700 /home/tftpdir
Method 2
Specify the files available to clients in the tftpd entry in the /etc/inetd.conf file as follows:
• For IPv4 address:
tftpd dgram udp wait root /usr/lbin/tftpd tftpd [path...]
• For IPv4 and IPv6 address
tftpd dgram udp6 wait root /usr/lbin/tftpd tftpd [path...]
[path...] is a list of the files or directories that you want to make available to TFTP clients.
File or directory names are separated by spaces. Each file or directory is assumed to be relative
to the root directory (.).
Reconfigure /usr/sbin/inetd using the following command:
110 Configuring the BOOTP and TFTP Servers