Configuring and Managing MPE/iX Internet Services (August 2002)

Chapter 5
TFTP Service
Starting tftpd
66
Specifying a Search Path
As an option, you can use the [path] parameter in the inetd configuration file entry to specify the list of
files or directories that are available to TFTP clients. For example, if you would like to have the /tmp and /bin
directories available to TFTP clients in addition to the home group of the TFTP user, edit the line to look like
this:
tftp dgram udp wait USER.TFTP /SYS/NET/TFTPD tftpd /tmp /bin
When a file is requested by a TFTP client, tftpd first looks for a file relative to the home directory of the user
specified in the inetd configuration file. If it does not find the file there, it then checks to see if the following
two conditions are met:
File requested is at or below [path].
User specified in the inetd configuration file (in the previous examples, USER.TFTP) has access to the file.
When invoked with no path arguments, tftpd cannot follow symbolic links that refer to paths outside of the
home directory of the user specified in the inetd configuration file.
Permission to Retrieve Files
If permission is given to remote systems to retrieve a file through TFTP, then the file must be readable by the
user specified in the inetd configuration file. If permission is given to remote systems to transmit a file
through TFTP, then the file must already exist and be writable by the user specified in the inetd
configuration file.
Starting tftpd
The TFTP daemon runs under the Internet daemon. If you have just added tftpd to the inetd configuration,
you must reconfigure inetd to begin using TFTP. To reconfigure inetd, enter the following command at the CI
prompt:
:INETD.NET.SYS -c
Or, from the POSIX shell, enter this command:
$/etc/inetd -c
If you have added tftpd to the inetd configuration file while the Internet daemon is not running, you must
start inetd to start the TFTP server. To do so, stream the job JINETD.NET.SYS from the CI prompt.
:STREAM JINETD.NET.SYS