LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-02-2003, 03:24 PM   #1
rewt
Member
 
Registered: May 2001
Posts: 44

Rep: Reputation: 15
tftpd (weird problem?)


I was wondering if anyone could help me- I would appreciate any help anyone can give. even just a point in the right direction would help.

The trouble I am having is with TFTPD on a Red Hat 7.2 box

There are no firewalls and no wrappers to deal with. TFTPD runs from xinetd. Seems to be no error messages that I can find. Xinetd starts and shows no errors and when I do a netstat -au tftp is shown.

when I am local on the box I can tftp transfer a file and it is successful (put and get) but if I am on a remote machine I get this error message: Transfer timed out. I cannot for the life of me figure out what is wrong. and I have tried to tftp files from multiple boxes none work.

the weird thing is there have been no upgrades and nothing else has changed (as far as I know) it was working up until the 10th of last month. then it just stops. so I have fiddled with it as much as I could, even figured upgrading the tftp-server to a newer one would help so I upgraded the old one (tftp-server-0.17-14.i386.rpm) with a newer version (tftp-server-0.28-2.i386.rpm) and nothing has changed.

here is my xinetd config for TFTP:
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -cs /tftpboot
per_source = 11
cps = 100 2
}


I left it default to begin with but then added the -c that I need so I can upload files to the server.

There is one thing that has changed-
This machine was originally in West Va. and instead of changing the IP we just host-routed that IP to the subnet its now hosted on. I can traceroute to this machine and ping and ssh to it, the Radius server works. everything but TFTPD works.
I wouldn't have thought that would have effected it. I could be wrong and if anyone has any Ideas of what I can do to remedy this or what could actually be the problem, please let me know-

If there is any other information I can provide to help you help me I will gladly do what I can.

I really appreciate the help.
Thanks
 
Old 03-03-2003, 11:00 PM   #2
linshu
LQ Newbie
 
Registered: Mar 2003
Posts: 4

Rep: Reputation: 0
Question disable xinetd

Hi rewt,

Looks like you know how to get rid of the other impacts on tftpd. Could you please help me about this?

i have the same tftp config file with you:
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -cs /tftpboot
per_source = 11
cps = 100 2
}

but i got below when i used tftp client to test:
$ tftp -v 192.168.0.1
Connected to 192.168.0.1 (192.168.0.1), port 69
tftp> get /tftpboot/chorus.bmon
getting from 192.168.0.1:/tftpboot/chorus.bmon to chorus.bmon [netascii]
Error code 2: Access violation

it seems related to xinetd access control, cause i've already disabled firewall. there is no roles in hosts.allow and hosts.deny. And i got log as the following:
Mar 3 18:24:37 shark xinetd[2644]: warning: can't get client address: Resource temporarily unavailable
Mar 3 18:24:37 shark mtftpd[2644]: recvfrom: Resource temporarily unavailable
it looks like xinetd need varify client address before it give the access permission to client. how can i disable or bypass it for my tftp?

Thanks ahead,
Shu
 
Old 03-11-2003, 08:20 AM   #3
rewt
Member
 
Registered: May 2001
Posts: 44

Original Poster
Rep: Reputation: 15
I apologize for not answering sooner. Are you still having this problem?

what error messages are you getting from your logs?
Make sure the /tftpboot Directory exists.
If so, have you checked the permissions on the /tftpboot dir?
Make sure it is readable and writable to everyone
chmod 777 /tftpboot
at first to be sure it works then after it works modify the permissions to suit your needs.


rewt
 
Old 03-11-2003, 08:45 AM   #4
linshu
LQ Newbie
 
Registered: Mar 2003
Posts: 4

Rep: Reputation: 0
chmod 710 /tftpboot

Thanks a lot, rewt. i got through this issue by adding execute permission of group member to /tftpboot.

but, i got "Transfer timed out" immediately, even on the local tftp client.

i will check the handshaking of a client and a server by ethereal, i think the problem may be related with tftp RFCs (sorry, i forgot the number).

how's your problem? solved?

Shu
 
Old 03-11-2003, 09:04 AM   #5
rewt
Member
 
Registered: May 2001
Posts: 44

Original Poster
Rep: Reputation: 15
Yes my problem got solved... thanks for asking- Unfortunately I never figured out the real root of the problem. It was the weirdest thing I have ever seen, none of my co workers could even get that box to do TFTP. I had a feeling the box was about to crash anyway, and I couldn't afford that pain.

I eventually installed Debian on that box, the TFTP server I am using now is: tftpd-hpa and its all working like a charm. you should check that tftp server out its very configurable. This allows me to configure it to chmod a file on upload and even set the owner of the file. lots of good things you can do with it.

anyway, hope you get your problem fixed.
let me know what you find.

Thnx,
rewt.
 
Old 05-09-2003, 02:16 PM   #6
Ned
LQ Newbie
 
Registered: May 2003
Posts: 2

Rep: Reputation: 0
Please help.....I cannot upload files to the server. The following configuration is as follow.....

I set chmod 777 tftpboot.

Here is my xinetd config for TFTP:
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -cs /tftpboot
per_source = 11
cps = 100 2
}

thanks
Ned
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
debian tftpd JJX Linux - Distributions 4 01-04-2006 12:31 PM
configuring TFTPD (Kubuntu 5.04) retiem Linux - Networking 2 05-06-2005 08:24 AM
Weird, weird apache2 problem atheist Debian 1 09-17-2004 08:26 PM
tftpd pxe-01 file not found on terminal fitzy85 Linux - Networking 1 08-11-2004 01:16 AM
tftpd, xfs, dhcpd, xdm on eth1?? TieN Linux - Networking 3 03-19-2003 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:39 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration