NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/41535: inetd/tftpd refuses connection with - recvfrom: Resource temporarily unavailable



>Number:         41535
>Category:       bin
>Synopsis:       inetd/tftpd refuses connection with - recvfrom: Resource 
>temporarily unavailable
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 04 11:25:00 +0000 2009
>Originator:     Stephan Pietzko
>Release:        NetBSD 3.1_STABLE (2 Mai 09)
>Organization:
University of Konstanz, Computing Center
>Environment:
NetBSD host.rz.uni-konstanz.de 3.1_STABLE NetBSD 3.1_STABLE (GENERIC) #8: Sat 
May  2 05:42:09 CEST 2009  
root%host.rz.uni-konstanz.de@localhost:/usr/obj/sys/arch/i386/compile/GENERIC 
i386
>Description:
The tftpd service doesn't work in the default config. 

The Client (Cisco) gets "%Error reading tftp://134.34.12.34/asa804-28-k8.bin 
(Timed out attempting to connect)" direktly after the attempt (not waiting for 
a timeout).

On the server is get in /var/log/messages:
"Jun  4 12:34:57 host tftpd[639]: recvfrom: Resource temporarily unavailable" 
and the inetd is not listening anymore on the tftp port.
With debug option in tftpd enabled i get:
Jun  4 12:34:57 host tftpd[1014]: running as user `nobody' (32767), group 
`(unspecified)' (39)
Jun  4 12:34:57 host tftpd[1014]: recvfrom: Resource temporarily unavailable

The permission of the file is:
-rw-rw-rw-  1 joe  wheel  13879296 Jun  4 08:24 /tftpboot/asa804-32-k8.bin

It is possible that other Releases have the same problem.
>How-To-Repeat:
Uncomment the default in /etc/inetd.conf and /etc/rc.d/inetd reload

tftp            dgram   udp     wait    root    /usr/libexec/tftpd      tftpd 
-l -s /tftpboot


Now try to download something via tftpd.
>Fix:
Specify a user (and indirectly a group via /etc/passwd) or directly a group in 
/etc/inetd.conf.

In my case 
tftp            dgram   udp     wait    root    /usr/libexec/tftpd      tftpd 
-l -g nogroup -s /tftpboot
works fine.



Home | Main Index | Thread Index | Old Index