Setting Up A Tftp Service

From RidgeRun Developer Connection

(Difference between revisions)
Jump to:navigation, search
m (Create /etc/xinetd.d/tftp and fill the file with:)
Line 22: Line 22:
===Make /srv/tftp directory===
===Make /srv/tftp directory===
 +
<pre>
<pre>
sudo mkdir /srv/tftp
sudo mkdir /srv/tftp
Line 27: Line 28:
sudo chown -R nobody /srv/tftp
sudo chown -R nobody /srv/tftp
</pre>
</pre>
 +
===Start tftpd through xinetd===
===Start tftpd through xinetd===
 +
<pre>
<pre>
sudo /etc/init.d/xinetd restart
sudo /etc/init.d/xinetd restart
</pre>
</pre>
 +
 +
[[Category: HowTo]]

Revision as of 13:45, 27 March 2012

Contents

Install tftpd and related packages

sudo apt-get install xinetd tftpd tftp

Create /etc/xinetd.d/tftp and fill the file with:


cat <<EOF | sudo tee /etc/xinetd.d/tftp
service tftp
{
    protocol        = udp
    port            = 69
    socket_type     = dgram
    wait            = yes
    user            = nobody
    server          = /usr/sbin/in.tftpd
    server_args     = /srv/tftp
    disable         = no
}
EOF

Make /srv/tftp directory

sudo mkdir /srv/tftp
sudo chmod -R 777 /srv/tftp
sudo chown -R nobody /srv/tftp

Start tftpd through xinetd

sudo /etc/init.d/xinetd restart
Navigation
Toolbox