Information
RHEL 10 must be configured to operate in secure mode if the Trivial File Transfer Protocol (TFTP) server service is required.
GROUP ID: V-281363RULE ID: SV-281363r1195454
Restricting TFTP to a specific directory prevents remote users from copying, transferring, or overwriting system files.
Solution
Configure RHEL 10 TFTP to operate in secure mode with the following command:
$ sudo systemctl edit tftp.service
In the editor, enter the following:
[Service]ExecStart=/usr/sbin/in.tftpd -s /var/lib/tftpboot
After making changes, reload the systemd daemon and restart the TFTP service as follows:
$ sudo systemctl daemon-reload $ sudo systemctl restart tftp.service