To allow clients to use the TFTP server, you must ensure that the
QTFTP profile has authority to access the directories and files that the clients
access through the TFTP server. You also need to set the TFTP server attributes
to allow the desired client requests.
When configuring TFTP for use by clients, first determine the directories
and files that the clients are using. For this example, the clients use the
TFTP server to read files from the directory /netpc/bin/system.
- Use the MKDIR command with an argument of /netpc to
create the directory /netpc
MKDIR (netpc)
- Specify the WRKLNK command with an argument of /netpc
WRKLNK (netpc)
- Specify option 9 to display the current authorities.
- For the *PUBLIC user, specify option 2, change user authority,
and specify *NONE for New data authorities.
This ensures that
the file is not open to the public.
- To add a user on the Work with Authority menu, specify the following
on the first line: 1 for Opt, QTFTP for User, and *RX for
Data Authority.
Press Enter.
- Press the PF5 key to refresh the menu. You see the userid
*PUBLIC with a data authority of *EXCLUDE, the userid QTFTP with a data authority
of *RX, and your own userid with a data authority of *RWX.
Use the MKDIR
command to create the following directories:
/netpc/bin
/netpc/bin/system
Each directory inherits the authority of the
parent directory and has the owner added implicitly as a user with *RWX authority.
Copy any files that the client requests to the netpc/bin/system subdirectory.
You can copy the files in various ways, such as using the COPY command, File
Transfer Protocol (FTP), or iSeries™ Access. You must ensure that the QTFTP profile
has *R authority to each file that the client requests. To set the authorities
for the files, use the WRKLNK command and option 9 (Work with Authority).
- Specify the CHGTFTPA command and press the PF4 key.
- Change the Alternate source directory to /netpc/bin/system and
press Enter.
This allows the TFTP server to request any file
with the appropriate authority settings, including the directory /netpc/bin/system in
its path.
- To have the changes take effect, stop the TFTP server with ENDTCPSVR
*TFTP and restart it by using STRTCPSVR *TFTP.