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

Pure-ftpd bug or ftp client's bug?



Hi, mentors

Tom Pfeifer report a bug against curlftpfs [1]. I tried and find out why
the problem occurs.

I open 2 terminal, here named console1 and console2
Console1
I login to ftp by user user and password pass, use pasv mode to transfer
file, then run command stor file
Console2
I run command *cat file1G | nc 192.168.10.40 ftp_data_port_listen_at_server*
Console1
I run command site chmod 644 file1
Console2
Press Ctrl-C to interrupt file transfer.

Debug pure-ftpd
===========

Trying 192.168.10.40...
Connected to 192.168.10.40.
Escape character is '^]'.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 02:32. Server port: 21.
220-This is a private system - No anonymous login
220 You will be disconnected after 15 minutes of inactivity.
user user
331 User user OK. Password required
pass pass
230-User user has group access to:  user   
230 OK. Current directory is /home/user
pasv
227 Entering Passive Mode (192,168,10,40,211,12)
stor file
150 Accepted data connection
site chmod 600 file
Connection closed by foreign host.

Debug vsftpd
===========
Connection closed by foreign host.
Trying 192.168.10.40...
Connected to 192.168.10.40.
Escape character is '^]'.
220 (vsFTPd 2.0.5)
user user
331 Please specify the password.
pass pass
230 Login successful.
pasv
227 Entering Passive Mode (192,168,10,40,115,28)
stor file
150 Ok to send data.
site chmod 600 file
226 File receive OK.
200 SITE CHMOD command ok.
quit
221 Goodbye.
Connection closed by foreign host.

The Problem
==========

The Problem is when file transfer is not finished, site chmod 600 file
make pure-ftpd broken the connection.
The question is, who should response for this bug? curlftpfs or pure-ftpd?

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499153


Reply to: