Installing and Administering Internet Services

Chapter 5 171
Configuring TFTP and BOOTP Servers
Configuring the TFTP Server
Configuring the TFTP Server
To manually configure the TFTP server, tftpd, you need to modify the
tftpd entry in the /etc/inetd.conf file or create an entry for the user
tftp in the /etc/passwd file. If you use SAM to configure your system
as a BOOTP server, your system is automatically configured as a TFTP
server. The following sections explain the manual method for configuring
and verifying tftpd.
NOTE You must be superuser to configure the TFTP server.
Procedure for Configuring tftpd
Configuring tftpd on your system allows you to make files available to
remote clients that support TFTP. For new tftpd installations, you can
do this in one of two ways:
Add the user tftp to /etc/passwd. For example,
tftp:*:510:10:TFTP:/home/tftpdir:/usr/bin/false
HP recommends that you use this method. If there is no
/etc/passwd entry for the user tftp, tftpd has root access to any
files or directories you specify in the entry for tftp in the
/etc/inetd.conf file. If an /etc/passwd entry exists for the user
tftp, 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 the
file is not found there, then tftpd looks for the file relative to the
path(s) 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, to create a home
directory for the user tftp, make the directory owner the user tftp,
and ensure the directory gives the user tftp read, write, and execute
permissions. For example: