Fwd: wu-ftpd disconnects anonymous user while displaying .message

Ian Cameron <[email protected]> Thu, 18 Mar 2004 15:59:36 +0000
Newsgroups gmane.network.ftp.wuftpd.user
Message-ID <[email protected]>
Hi,

I recently sent the message below to this list, but got no response to it 
from anyone.  I presume that nobody has an answer.  I have given it a 
week for a response.  I presume this is a bug in wu-ftpd, so where should 
I direct my next enquiry?  The developers list?

Thanks for any advice.

-- 
Cheers, Ian.


------- Forwarded Message

Hi,

We are running wu-ftpd-2.6.2-12 on a RedHat 8.0 box.  We have a mirror of 
the current RedHat release (well kind of) 9.0.  Users can log in and use 
the FTP server, but any attempt to access the i386 directory causes them 
to get disconnected after one line of the .message file has been 
displayed.  Here is what happens:

[iac2@sloe iac2]$ ftp blackadder2.open.ac.uk
Connected to blackadder2.open.ac.uk (137.108.64.205).
220 blackadder2.open.ac.uk FTP server (Version wu-2.6.2-12) ready.
Name (blackadder2.open.ac.uk:iac2): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /Linux/RedHat/current/os
250 CWD command successful.
ftp> cd i386
250-Please read the License Agreement at http://www.redhat.com/licenses/ or
421 Service not available, remote server has closed connection
ftp> 

This does not happen if I log in as a real user however, only as 
anonymous or ftp:

Connected to blackadder2.open.ac.uk (137.108.64.205).
220 blackadder2.open.ac.uk FTP server (Version wu-2.6.2-12) ready.
Name (blackadder2.open.ac.uk:iac2): 
331 Password required for iac2.
Password:
230 User iac2 logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /var/ftp/pub/Linux/RedHat/current/os
250 CWD command successful.
ftp> cd i386
250-Please read the License Agreement at http://www.redhat.com/licenses/ or
250-/pub/redhat/linux/9/en/os/i386/EULA for Red Hat Linux 9 before downloading 
250-the software.  By downloading the software, you agree to the terms and 
250-conditions of the License Agreement.
250-
250-Please read the file README
250-  it was last modified on Fri Mar 14 02:29:15 2003 - 363 days ago
250-Please read the file README-Accessibility
250-  it was last modified on Fri Mar 14 02:29:15 2003 - 363 days ago
250-Please read the file README.de
250-  it was last modified on Fri Mar 14 02:29:15 2003 - 363 days ago
250-Please read the file README.es
250-  it was last modified on Fri Mar 14 02:29:15 2003 - 363 days ago
250-Please read the file README.fr
250-  it was last modified on Fri Mar 14 02:29:15 2003 - 363 days ago
250-Please read the file README.it
250-  it was last modified on Fri Mar 14 02:29:15 2003 - 363 days ago
250-Please read the file README.ja
250-  it was last modified on Fri Mar 14 02:29:15 2003 - 363 days ago
250-Please read the file README.ko
250-  it was last modified on Fri Mar 14 02:29:15 2003 - 363 days ago
250-Please read the file README.pt
250-  it was last modified on Fri Mar 14 02:29:15 2003 - 363 days ago
250-Please read the file README.pt_BR
250-  it was last modified on Fri Mar 14 02:29:15 2003 - 363 days ago
250-Please read the file README.zh_CN
250-  it was last modified on Fri Mar 14 02:29:15 2003 - 363 days ago
250-Please read the file README.zh_TW
250-  it was last modified on Fri Mar 14 02:29:15 2003 - 363 days ago
250 CWD command successful.
ftp> 

The whole of that .message file is:

Please read the License Agreement at http://www.redhat.com/licenses/ or
/pub/redhat/linux/9/en/os/i386/EULA for Red Hat Linux 9 before downloading 
the software.  By downloading the software, you agree to the terms and 
conditions of the License Agreement.

Using 'cat -A' shows that it contains no non-printing or odd characters.

The log only shows:

Mar 11 16:09:04 blackadder2 ftpd[19703]: wu-ftpd - TLS settings: control allow, 
client_cert allow, data allow
Mar 11 16:09:06 blackadder2 ftpd[19703]: ANONYMOUS FTP LOGIN FROM sloe.open.ac.u
k [137.108.74.39], iac2@
Mar 11 16:09:18 blackadder2 ftpd[19703]: lost connection to sloe.open.ac.uk [137
.108.74.39]
Mar 11 16:09:18 blackadder2 ftpd[19703]: FTP session closed

Here's what our /etc/ftpaccess looks like:

class all anonymous,guest,real *
loginfails 3
private no
email [email protected]
message /welcome.msg    LOGIN
message .message        CWD=*
readme  README* LOGIN
readme  README* CWD=*
chmod no anonymous,guest
delete no anonymous,guest
overwrite no anonymous,guest
rename no anonymous,guest
passwd-check trivial warn
log security anonymous,guest,real
log transfers anonymous,guest,real inbound
log transfers anonymous,guest,real outbound
anonymous-root /var/ftp/pub
passive ports 0.0.0.0/0 64000 64999
iptos control lowdelay
iptos data throughput

If I move the .message file to another name then it works, so what is it 
in that file which might be causing this, and only affects the anonymous 
user?

Anyone have any ideas?  I have tried searching with Google to see if 
anyone else had noticed this problem, but couldn't seem to find anything.

TIA.

- -- 
Cheers, Ian.

------- End of Forwarded Message