dimanche 15 mars 2015

ubuntu: TFTP not running correctly

System info



root@ravi-Inspiron-N5010:/home/ravi# lsb_release -a No LSB modules are
available. Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS
Release: 14.04 Codename: trusty

root@ravi-Inspiron-N5010:/home/ravi# uname -a
Linux ravi-Inspiron-N5010 3.13.0-46-generic #76-Ubuntu SMP Thu Feb 26 18:52:49 UTC 2015 i686 i686 i686 GNU/Linux


Issue


I am following this tutorial to work with tftp:


First, I install all the necessary packages:



sudo apt-get install xinetd tftpd tftp -y


Next, create a configuration file:



sudo nano /etc/xinetd.d/tftp


Put the following content into the file.



service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = var/lib/tftpboot -s
disable = no
}


Now I change the ownership of the directory:



sudo mkdir /var/lib/tftpboot
sudo chown -R nobody:nobody /var/lib/tftpboot
sudo chmod -R 777 /var/lib/tftpboot


and start the TFTP service:



sudo service xinetd stop
sudo service xinetd start


Then verify the TFTP is running correctly or not:



root@ravi-Inspiron-N5010:/home/ravi# netstat -na | grep LIST | grep 69
unix 2 [ ACC ] STREAM LISTENING 16171 @/com/ubuntu/upstart-session/1000/1692
root@ravi-Inspiron-N5010:/home/ravi#


The output of the netstat is different from what is mentioned in the tutorial:



tcp 0 0 0.0.0.0:69 0.0.0.0:* LISTEN


Please help me in correctly starting the tftp.


Aucun commentaire:

Enregistrer un commentaire