The post I created about installing TFTPD on CentOS 6.3 is one of the most visited posts in my blog. I’ve decided to create a new post for CentOS 6.5 with the same purpose: configure tftpd so it allows uploading files, I’ve used again the information found in /usr/share/doc/tftp-server-0.49/README.security.
yum install tftp-server adduser tftpd chown tftpd:tftpd /var/lib/tftpboot # if you are running iptables and want to save your firewall rules iptables -I INPUT -p udp --dport 69 -j ACCEPT service iptables save # if you want xinetd/tftpd start on boot chkconfig xinetd on
Once again as I want to be able to upload files I need -c and -p arguments and I’ve set the umask for the new files 117 (read write permissions for tftpd user and group). These are the lines I’ve modified in /etc/xinetd.d/tftp configuration file:
- disable = no
- server_args = -c -p -u tftpd -U 117 -s /var/lib/tftpboot
Finally start the xinetd service:
- service xinetd start
Your TFTPD server will be running in the UDP 69 port… again 🙂
Enjoy!