LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-28-2011, 11:29 AM   #1
adetheheat
Member
 
Registered: Jun 2010
Posts: 49

Rep: Reputation: 0
Can't get tftp to work on Debian


I have created a /tftpboot directory and chmod it to 777.
I have put an image 'uImage' on my Debian box under /tftpboot

In directory /etc/xinetd.d/ I have created file tftp:

Service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = /tftpboot
log_type = SYSLOG daemon info
log_on_failure = HOST
log_on _success = HOST
}

I restart tftp server with:

/etc/init.d/xinetd restart


Now I can ping the debian box from my pc and vice versa.
Now when I try to do an ftp:

tftp 192.168.2.211 GET uImage

I keep geting timeouts although uImage is on the debian box and it appears the tftp server is running.

I've also tried tftp on the same linux box as the file is stored
tftp 127.0.0.1 GET uImage.

The file /usr/sbin/in.tftp exists

I've tried adding:
server_args = -s /tftpboot

permissions on /tftboot 777 and uImage is 644 ie it has read access for everyone.

With verbose trace on as root on I get:
getting from 127.0.0.1:uimage to uimage
sent RRQ <file=uimage, mode=netascii>
sent RRQ <file=uimage, mode=netascii>
sent RRQ <file=uimage, mode=netascii>
sent RRQ <file=uimage, mode=netascii>
Transfer timed out

As user I get:
uImage: Permission Denied

There is nothing in /etc/hosts.deny file

the permissions for /tftpboot are 777, and the the file uimage is 644, ie full read access.
I've restarted xinetd.


Help !!
 
Old 05-01-2011, 02:35 PM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
I would guess "Service" should be "service", but at any rate the first step in troubleshooting issues like this is to use "netstat -l" to verify that something is listening on the relevant port (69 in this case).

Personally I wouldn't use xinetd for this.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't work tftp server msthing Linux - Enterprise 8 06-01-2008 08:21 PM
after re-create tftp dir, tftp doesn't work anymore lastguy Linux - Networking 2 11-16-2007 03:33 PM
Debian Tftp Server ac402 Linux - Software 0 12-27-2003 04:10 PM
TFTP Problem? it will not work! m1anh Linux - General 1 02-02-2003 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration