How to configure tftpd-hpa to allow upload of new files?
Solution 1:
From tftpd's manpage:
--create, -c
Allow new files to be created. By default, tftpd will only
allow upload of files that already exist. Files are created
with default permissions allowing anyone to read or write them,
unless the --permissive or --umask options are specified.
Change server_args
to:
server_args = -c -v -s /var/lib/tftpboot
You don't need xinetd to get tftpd up and running. This is how I install and configure tftpd:
sudo aptitude install tftpd-hpa
sudo chown -R tftp /var/lib/tftpboot
Edit /etc/default/tftpd-hpa to insert -c
into TFTP_OPTIONS
. The line should look like:
TFTP_OPTIONS="--secure -c"
Finally, restart tftpd service:
sudo service tftpd-hpa restart