Figure 4.7: tftpd-hpa is running.
The default configuration file of tftpd-hpa server is /etc/default/tftpd-hpa. If you want to configure
the TFTP server, then you have to modify this configuration file and restart the tftpd-hpa service.
• To modify the /etc/default/tftpd-hpa configuration file (Figure 4.8), run the following
command:
~$ sudo nano /etc/default/tftpd-hpa
Figure 4.8: Modify the /etc/default/tftpd-hpa configuration file.
The configuration file should now be open for editing, and showing the default configuration of the TFTP
server. See figure 4.9 below.
Here, TFTP_USERNAME is set to tftp. It means the TFTP server will run as the user tftp.
TFTP_DIRECTORY is set to /var/lib/tftpboot. It means /var/lib/tftpboot is the directory on this
server which you will be able to accessing via TFTP.
TFTP_ADDRESS is set to :69. It means TFTP will run on port 69.
TFTP_OPTIONS is set to –secure. This variable sets the TFTP options. There are many options that
you can use to configure how the TFTP server will behave.
The –secure option means change the TFTP directory to what is set on the TFTP_DIRECTORY variable
when you connect to the TFTP server automatically. This is a security feature. If you hadn’t set the –
secure option, then you would have to connect to the TFTP server and set the directory manually.