NetBSD Problem Report #8504

Received: (qmail 14950 invoked from network); 28 Sep 1999 07:29:16 -0000
Message-Id: <199909280729.AAA14024@nooksack.ldc.cs.wwu.edu>
Date: Tue, 28 Sep 1999 00:29:18 -0700 (PDT)
From: p99dreyf@criens.u-psud
Reply-To: p99dreyf@criens.u-psud
To: gnats-bugs@gnats.netbsd.org
Subject: ftpd refuses any login with error 421
X-Send-Pr-Version: www-1.0

>Number:         8504
>Category:       bin
>Synopsis:       ftpd refuses any login with error 421
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 28 00:35:00 +0000 1999
>Closed-Date:    Thu Sep 30 18:12:58 +0000 1999
>Last-Modified:  Thu Sep 30 18:14:04 +0000 1999
>Originator:     Emmanuel Dreyfus
>Release:        NetBSD/mac68k-1.4.1
>Organization:
None
>Environment:
NetBSD gizmo 1.4.1 NetBSD 1.4.1 (KERNEL) #0: Sun Sep 12 22:36:26 CEST 1999     r
oot@gizmo:/usr/src/sys/arch/mac68k/compile/KERNEL mac68k


>Description:
When there is a blank line in /etc/ftpchroot, whatever the login is, 
after asking password, ftpd closes connection with error 421:
220 gizmo FTP server (Version: 7.1.0) ready.
Name (10.0.2.1:manu): manu
331 Password required for manu.
Password:
421 Service not available, remote server has closed connection.
ftp: Login failed.
ftp: No control connection for command.
ftp>

The blank line breaks the FTP service. Since this is not documented in
the ftpd man page, I do consider it as a bug.
>How-To-Repeat:
Add a blank line to /etc/ftpchroot, and try to log in.
Here was my /etc/ftpchroot file:
#       $NetBSD: ftpchroot,v 1.3 1997/01/04 14:03:34 mrg Exp $
#
# list of users given ftp access to a chrooted area.
# read by ftpd(8).
#joeuser

jmg


>Fix:
I think the source fix is to be around line 1220 in
/usr/src/libexec/ftpd/dftpd.c, but since the file is not extensively
documented, I don't know exactly what is to be changed, and I will not
submit a patch myself.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: tron 
State-Changed-When: Thu Sep 30 11:12:58 PDT 1999 
State-Changed-Why:  
The problem was caused by a segmentation fault which doesn't occur any more. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.