CentOS 6.5 – Installing a TFTPD server for uploading configuration files

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!

Advertisements

10 thoughts on “CentOS 6.5 – Installing a TFTPD server for uploading configuration files

  1. bobsie wayne says:

    excellent stuff ….i have spent hours trying to upload and scouring the internet on how to get the files writing and this is the only command that works server_args = -c -p -u tftpd -U 117 -s /var/lib/tftpboot, so thanks for being someone who actaully knows what they are talking about.

    Liked by 1 person

  2. Uros says:

    yum install tftp-server
    Loaded plugins: clearcenter-marketplace, fastestmirror
    Setting up Install Process
    ClearCenter Marketplace: fetching repositories…
    Loading mirror speeds from cached hostfile
    * clearos: clearos.mirrors.ovh.net
    * clearos-addons: clearos.mirrors.ovh.net
    * clearos-extras: clearos.mirrors.ovh.net
    * clearos-updates: clearos.mirrors.ovh.net
    * private-clearcenter-dyndns: download4.clearsdn.com:80
    No package tftp-server available.
    Error: Nothing to do

    Like

  3. wouter says:

    yum install tftp-server
    Loaded plugins: fastestmirror, refresh-packagekit, security
    Loading mirror speeds from cached hostfile
    Setting up Install Process
    No package tftp-server available.
    Error: Nothing to do

    last time it worked like a charm, now same centos version and it doesn’t.
    There were no special repos needed though?

    Like

  4. wouter says:

    Hmmmm, CentOS-Base repos were not enabled 😦
    Can’t remember this issue the last time i rolled out the template. Maybe it disables them when the template boots with no network connection.
    The message doesn’t belong here anyway. The rest of the install worked fine like described.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s