Denis Grannell
2005-Feb-06 18:48 UTC
[syslinux] Can't get hpa-tftpd working on Slackware 9.1
Hi, I have a question on tftpd on Slackware - I know this is an embedded Linux forum, but I think it still must be the appropriate place to ask. I have hpa-tftpd V0.40 on Slackware 9.1. No matter what I do, I can't get files transferred to the tftp server. I just get timeouts - no messages in /var/log/messages or in /var/log/syslog - just dealthly silence. This is the configuration line from /etc/inetd.conf tftp dgram udp wait nobody /usr/sbin/tcpd -s /tftpboot /usr/local/tftp/sbin/in.tftpd All the files and directories on the above line exist - and I believe the permissions should be OK: ls -axl / total 1980 drwxrwxrwx 2 nobody daemon 4096 Oct 1 00:28 tftpboot ls -axl /usr/local/tftp/sbin/in.tftpd -rwxr-xr-x 1 root root 142391 Feb 6 13:53 /usr/local/tftp/sbin/in.tftpd ls -axl /usr/sbin/tcpd -rwxr-xr-x 1 root bin 20016 Sep 25 2003 /usr/sbin/tcpd When I try to transfer a file (which already exists in /tftpboot with permission set to 777) I can see that the tftpd is being started: ps -ef | grep tft nobody 11589 1058 0 16:25 ? 00:00:00 -s /tftpboot /usr/local/tftp/sbin/in.tftpd Yet nothing is transferred. I have tried changing all the directories to be owned by 'root' and then configuring the daemon to be launched as root, but the effect is exactly the same. I've also tried having the daemon run standalone rather than have it triggered by inetd, but again, the affect is the same. I've also tried running the daemon standalone in verbose mode like this: /usr/local/tftp/sbin/in.tftpd -v 5 -l Then when I try a transfer, I get: # tftp localhost tftp> put /tmp/test.txt /tftpboot/test.txt Error code 2: Forbidden directory tftp> Any ideas about what's wrong? Thanks, Denis -- Denis Grannell, Kapuzinerstr. 45, D-80469 Muenchen Tel: +49 89 2013672 Fax: +49 89 2022875 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Denis Grannell
2005-Feb-07 17:14 UTC
[syslinux] Can't get hpa-tftpd working on Slackware 9.1
Hi, I have a question on tftpd on Slackware - I know this is an embedded Linux forum, but I think it still must be the appropriate place to ask. I have hpa-tftpd V0.40 on Slackware 9.1. No matter what I do, I can't get files transferred to the tftp server. I just get timeouts - no messages in /var/log/messages or in /var/log/syslog - just dealthly silence. This is the configuration line from /etc/inetd.conf tftp dgram udp wait nobody /usr/sbin/tcpd -s /tftpboot /usr/local/tftp/sbin/in.tftpd All the files and directories on the above line exist - and I believe the permissions should be OK: ls -axl / total 1980 drwxrwxrwx 2 nobody daemon 4096 Oct 1 00:28 tftpboot ls -axl /usr/local/tftp/sbin/in.tftpd -rwxr-xr-x 1 root root 142391 Feb 6 13:53 /usr/local/tftp/sbin/in.tftpd ls -axl /usr/sbin/tcpd -rwxr-xr-x 1 root bin 20016 Sep 25 2003 /usr/sbin/tcpd When I try to transfer a file (which already exists in /tftpboot with permission set to 777) I can see that the tftpd is being started: ps -ef | grep tft nobody 11589 1058 0 16:25 ? 00:00:00 -s /tftpboot /usr/local/tftp/sbin/in.tftpd Yet nothing is transferred. I have tried changing all the directories to be owned by 'root' and then configuring the daemon to be launched as root, but the effect is exactly the same. I've also tried having the daemon run standalone rather than have it triggered by inetd, but again, the affect is the same. I've also tried running the daemon standalone in verbose mode like this: /usr/local/tftp/sbin/in.tftpd -v 5 -l Then when I try a transfer, I get: # tftp localhost tftp> put /tmp/test.txt /tftpboot/test.txt Error code 2: Forbidden directory tftp> Any ideas about what's wrong? Thanks, Denis -- Denis Grannell, Kapuzinerstr. 45, D-80469 Muenchen Tel: +49 89 2013672 Fax: +49 89 2022875 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Denis Grannell
2005-Feb-08 18:39 UTC
[syslinux] Can't get hpa-tftpd working on Slackware 9.1
Hi, Did I not provide correct or not enough information or am I in the wrong place? thanks, -- Denis Grannell, Kapuzinerstr. 45, D-80469 Muenchen _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Josef Siemes
2005-Feb-09 10:33 UTC
[syslinux] Can't get hpa-tftpd working on Slackware 9.1
Hi, stappers at stappers.nl (Geert Stappers) schrieb am 09.02.05 11:00:59:> > On Tue, Feb 08, 2005 at 07:39:31PM +0100, Denis Grannell wrote: > > Did I not provide correct or not enough information or am I > > in the wrong place? > > The prevent further noise: > > This mailinglist is about syslinux, a bootloader. > tftpd-hpa, a trivial file transfer procotocol daemon, is not a bootloader.quote from the syslinux info page: :About SYSLINUX : :This list is for discussion of the SYSLINUX and tftp-hpa Open Source packages by H. Peter Anvin. So yes, this is the correct place for asking tftp-hpa questions. And no, I've got no idea what your problem is. Can't you get files from the tftp server? Why would you put files to the tftp server? Did you actually understand the implications of a writeable tftp server? Regards, Josef __________________________________________________________ Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. weltweit telefonieren! http://freephone.web.de/?mc=021201
Denis Grannell
2005-Feb-14 19:50 UTC
[syslinux] Re: Can't get hpa-tftpd working on Slackware 9.1
hi, Geert Stappers urges me to post the solution to the above issue in order to bring it to proper closure. Also, it may be of some benefit to other users. It was noticed that the following line in my "inetd.conf" was incorrect: tftp dgram udp wait nobody /usr/sbin/tcpd -s /tftpboot /usr/local/tftp/sbin/in.tftpd I corrected this syntax and placed the tftpd options after the invocation of tftpd and restarted the inetd daemon, however tftp file transfers to the server still didn't work. Then I started the tftpd daemon in standalone mode with the options in the order that H. Peter Anvin suggested and after that it started working. I still can't trigger the tftp service through the inetd daemon, however, once I start it in standalone mode as follows: "/usr/local/tftp/sbin/in.tftpd -l -u nobody -s /tftpboot" then it works and I can put files onto the server. Strictly speaking, this is not a Syslinux issue. It appears to be the combination of the Slackware Linux 9.1 inet daemon and hpa tftpd. They don't want to work together. The one minor anomaly is that despite the "-u" option, the tftpd daemon is running as root instead of as "nobody". This not significant in the environment where my setup is running. It may however be significant in production environments. Thank you for the pointers to the error. regards, -- Denis Grannell, Kapuzinerstr. 45, D-80469 Muenchen _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/