NetBSD Problem Report #41535

From www@NetBSD.org  Thu Jun  4 11:22:04 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 548B163B88A
	for <gnats-bugs@gnats.netbsd.org>; Thu,  4 Jun 2009 11:22:04 +0000 (UTC)
Message-Id: <20090604112203.DC97B63B11D@www.NetBSD.org>
Date: Thu,  4 Jun 2009 11:22:03 +0000 (UTC)
From: netbsd@uracil.rz.uni-konstanz.de
Reply-To: netbsd@uracil.rz.uni-konstanz.de
To: gnats-bugs@NetBSD.org
Subject: inetd/tftpd refuses connection with - recvfrom: Resource temporarily unavailable
X-Send-Pr-Version: www-1.0

>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:/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.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.