Bug 29529
Summary: | in.tftpd not allowing files to be uploaded to system | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Andrew Watts <andreww> |
Component: | tftp | Assignee: | Helge Deller <hdeller> |
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | CC: | adamsg, billt, blaine, dr, larry.kopenkoskey, pekkas |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-04-12 09:51:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Andrew Watts
2001-02-26 09:44:48 UTC
This is a known problem due to a bug -- tftp puts don't work at all. Corrected RPMs are available at e.g.: ftp://ftp.redhat.com/pub/redhat/beta/wolverine/en/OS/i386/RedHat/RPMS/ *** This bug has been marked as a duplicate of 18128 *** tftp-0.17-9 still doesn't fix tftp uploads My tests indicate that it's tftp client that it's broken. I grabbed tftp-0.16-5 compiled on RHL62, and uploads to 0.17-9 work fine with it. There are no compile warnings with tftp client 0.17-9 (except implicit declaration of memset, which doesn't cause this), so this is most weird. Perhaps reverting back to the beta for now might help ? *** Bug 30294 has been marked as a duplicate of this bug. *** I'm able to confirm that this is happening with 0.17-9. Get works, but put doesn't. Tim A sniffer trace shows that tftp is failing to respond with correct block number to start the transfer. The correct sequence is to ACK NR=0 . This would allow the client to begin the data transfer. The failing tftp always responds to the TFTP WRQ with ACK NR=1 and the data transfer never gets started. -- Blaine This bug should now be fixed in tftp-0.17-11, available from rawhide or directly from ftp://people.redhat.com/hdeller/ Please also check your /etc/xinetd.d/tftp to have at least the following entries: wait = yes user = root server = /usr/sbin/in.tftpd server_args = -cs /tftpboot disable = no (The -c in server_args enables the tftpd-server to create files), and that user nobody has write-permissions on /tftpboot if you want to test uploads/puts. *** Bug 36738 has been marked as a duplicate of this bug. *** Version 0.17-11 still does not work. No puts, no gets. /etc/xinetd.d/tftp is as above, /tftpboot is owned by nobody.nobody, mode 777, file /tftpboot/testing is the same, tftp will not get the testing file. Puts also don't work. I installed tftp-server-0.17-11 . Both puts and gets work for me. Check to see if your /usr/sbin/in.tftpd actually was updated. The tftp-server-0.17-11still does not work . Using redhat rpm and did not compile code. Has anyone had any luck? Does any know if tftp compilied code work? Below is my setup and log files. Does anyone have any suggestions? I have verified that /usr/sbin/in.tftpd is updated. [root@blacksun /]# ls -la /tftpboot total 12 drwxrw-rw- 3 root nobody 4096 Apr 24 08:26 . drwxr-xr-x 20 root root 4096 Apr 24 07:45 .. drwxr-xr-x 2 root root 4096 Mar 2 09:19 lost+found secure log file. Apr 24 08:27:29 blacksun xinetd[7628]: START: tftp pid=7633 from=198.168.200.1 Apr 24 08:27:49 blacksun xinetd[7628]: START: tftp pid=7635 from=198.168.200.1 messages log file no entries federal.net.nih.gov#copy run tftp Address or name of remote host []? 198.168.200.222 Destination filename [federal.net.nih.gov-confg]? /tftpboot/federal.net.nih.gov-confg TFTP: error code 2 received - Access violation %Error opening tftp://198.168.200.222//tftpboot/federal.net.nih.gov-confg (Undefined error) federal.net.nih.gov#copy run tftp Address or name of remote host []? 198.168.200.222 Destination filename [federal.net.nih.gov-confg]? TFTP: error code 2 received - Access violation %Error opening tftp://198.168.200.222/federal.net.nih.gov-confg (Undefined error) federal.net.nih.gov# tftp flie # default: off # description: The tftp server serves files using the trivial file transfer \ # protocol. The tftp protocol is often used to boot diskless \ # workstations, download configuration files to network-aware printers, \ # and to start the installation process for some operating systems. service tftp { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -cs /tftpboot disable = no } please try ln -s /tftpboot /tftpboot/tftpboot chown nobody.nobody /tftpboot/tftpboot on your TFTP-server and send again. Please ignore my last comment - Try the following steps instead: rm -rf /tftpboot/tftpboot # in case you already created /tftpboot/tftpboot ln -s . /tftpboot/tftpboot chmod 775 /tftpboot/tftpboot chown nobody.nobody /tftpboot chmod 775 /tftpboot which creates the symlink /tftpboot/tftpboot and fixes the owner and read/write permissions. added the following commands and still could not get tftp-server to work. ln -s /tftpboot /tftpboot/tftpboot chown nobody.nobody /tftpboot/tftpboot no messages in log file Secure file log Apr 24 10:40:14 blacksun xinetd[7628]: START: tftp pid=7733 from=192.168.200.1 Apr 24 10:40:37 blacksun xinetd[7628]: START: tftp pid=7735 from=192.168.200.1 Apr 24 10:40:57 blacksun xinetd[7628]: START: tftp pid=7737 from=192.168.200.1 error message from cisco router federal.net.nih.gov#copy run tftp Address or name of remote host []? 192.168.200.222 Destination filename [federal.net.nih.gov-confg]? TFTP: error code 2 received - Access violation %Error opening tftp://192.168.200.222/federal.net.nih.gov-confg (Undefined error) federal.net.nih.gov#copy run tftp Address or name of remote host []? 192.168.200.222 Destination filename [federal.net.nih.gov-confg]? /tftpboot/federal.net.nih.gov TFTP: error code 2 received - Access violation %Error opening tftp://192.168.200.222//tftpboot/federal.net.nih.gov (Undefined error) federal.net.nih.gov#copy run tftp Address or name of remote host []? 192.168.200.222 Destination filename [federal.net.nih.gov-confg]? /tftpboot/t/federal.net.nih.goftpboot/federal.net.nih.gov TFTP: error code 2 received - Access violation %Error opening tftp://192.168.200.222//tftpboot/tftpboot/federal.net.nih.gov (Undefined error) federal.net.nih.gov#Connection closed by foreign host. [root@blacksun /root]# added the following commands as suggested. chmod 775 /tftpboot chown 775 /tftpboot/tftpboot This made the tftp-server to work correctly. Thanks In case anyone else was searching for this here is some more output from devices trying to put files: # copy log boot.log tftp 192.168.1.100 /tftpboot/test Connecting (\) %% Transfer rejected by server |