inetd does not work with any ftpd

Bug #177132 reported by Hans Streibel
2
Affects Status Importance Assigned to Milestone
inetutils (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

If I ftp to my host, I can log in but I am never able to issue
the "dir" command successfully. In one configuration I can't
even login.

The standalone wu-ftpd works fine.
It does not have anything to do with /usr/sbin/tcpd (I omitted it
and got the same error).

- Ubuntu 7.10
- inetutils-inetd
- inetutils-ftpd and alternatively wu-ftpd
- ftpd is launched by the inetd
- uname -a
  Linux phoenix 2.6.22-14-generic #1 SMP Sun Oct 14 21:45:15 GMT 2007 x86_64 GNU/Linux

1) inetutils-ftpd

1a) /etc/inetd.conf:
ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/ftpd <-x>
(with debugging option <-x> appended - can't remember the correct character)

1b) typescript
hans@phoenix:~$ ftp localhost
Connected to localhost.
220 phoenix FTP server (GNU inetutils 1.5) ready.
Name (localhost:hans): hans
421 Service not available, remote server has closed connection
Login failed.
No control connection for command: Transport endpoint is not connected
ftp> quit

1c) /var/log/syslog
Dec 18 10:32:27 phoenix ftpd[16818]: connect from ::ffff:127.0.0.1 (::ffff:127.0.0.1)
Dec 18 10:32:32 phoenix ftpd[16818]: <--- 220
Dec 18 10:32:32 phoenix kernel: [55185.727122] ftpd[16818] general protection rip:2ba4257e6b50 rsp:7fff861d14f8 error:0

1d) /etc/inetd.conf:
ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/ftpd
without debugging option!

1e) typescript
hans@phoenix:~$ ftp localhost
Connected to localhost.
220 phoenix FTP server (GNU inetutils 1.5) ready.
Name (localhost:hans): hans
331 Password required for hans.
Password:
230- Linux phoenix 2.6.22-14-generic #1 SMP Sun Oct 14 21:45:15 GMT 2007 x86_64
230-
230- The programs included with the Ubuntu system are free software;
230- the exact distribution terms for each program are described in the
230- individual files in /usr/share/doc/*/copyright.
230-
230- Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
230- applicable law.
230 User hans logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
500 Illegal PORT Command
ftp: bind: Address already in use
ftp> quit
221 Goodbye.

1f) /var/log/syslog
Nothing - of course. ftpd was started without debugging

2) wu-ftp

2a) inetd.conf
ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/wu-ftpd -ld

2b) typescript
hans@phoenix:~$ ftp localhost
Connected to localhost.
220 phoenix FTP server (Version wu-2.6.2(1) Tue Jul 31 23:26:09 GMT 2007) ready.
Name (localhost:hans): hans
331 Password required for hans.
Password:
230 User hans logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/home/hans" is current directory.
ftp> dir
500 Illegal PORT Command
ftp: bind: Address already in use
ftp> quit
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 322 bytes in 0 transfers.
221-Thank you for using the FTP service on phoenix.
221 Goodbye.

2c) /var/log/syslog
Dec 18 10:47:31 phoenix wu-ftpd[17245]: connect from ::ffff:127.0.0.1 (::ffff:127.0.0.1)
Dec 18 10:47:49 phoenix wu-ftpd[17245]: <--- 220 phoenix FTP server (Version wu-2.6.2(1) Tue Jul 31 23:26:09 GMT 2007) ready.
 18 10:47:56 phoenix wu-ftpd[17245]: command: USER hans^M
Dec 18 10:47:56 phoenix wu-ftpd[17245]: <--- 331 Password required for hans.
Dec 18 10:47:59 phoenix wu-ftpd[17245]: command: PASS password^M
Dec 18 10:47:59 phoenix wu-ftpd[17245]: <--- 230 User hans logged in.
Dec 18 10:47:59 phoenix wu-ftpd[17245]: FTP LOGIN FROM localhost [0.0.0.0], hans
Dec 18 10:47:59 phoenix wu-ftpd[17245]: command: SYST^M
Dec 18 10:47:59 phoenix wu-ftpd[17245]: <--- 215 UNIX Type: L8
Dec 18 10:48:02 phoenix wu-ftpd[17245]: command: PWD^M
Dec 18 10:48:02 phoenix wu-ftpd[17245]: <--- 257 "/home/hans" is current directory.
Dec 18 10:48:04 phoenix wu-ftpd[17245]: command: PORT 127,0,0,1,231,243^M
Dec 18 10:48:04 phoenix wu-ftpd[17245]: refused PORT 127.0.0.1,59379 from localhost [0.0.0.0]
Dec 18 10:48:04 phoenix wu-ftpd[17245]: <--- 500 Illegal PORT Command
Dec 18 10:48:08 phoenix wu-ftpd[17245]: command: QUIT^M
Dec 18 10:48:08 phoenix wu-ftpd[17245]: <--- 221-You have transferred 0 bytes in 0 files.
Dec 18 10:48:08 phoenix wu-ftpd[17245]: <--- 221-Total traffic for this session was 322 bytes in 0 transfers.
Dec 18 10:48:08 phoenix wu-ftpd[17245]: <--- 221-Thank you for using the FTP service on phoenix.
Dec 18 10:48:08 phoenix wu-ftpd[17245]: <--- 221 Goodbye.
Dec 18 10:48:08 phoenix wu-ftpd[17245]: FTP session closed

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in inetutils:
status: New → Incomplete
Revision history for this message
Hans Streibel (hans-streibel) wrote : Re: [Bug 177132] Re: inetd does not work with any ftpd

On Wed, Nov 19, 2008 at 11:36:46PM -0000, Daniel T Chen wrote:
> Is this symptom still reproducible in 8.10?
>
> ** Changed in: inetutils (Ubuntu)
> Status: New => Incomplete
>
> --
> inetd does not work with any ftpd
> https://bugs.launchpad.net/bugs/177132
> You received this bug notification because you are a direct subscriber
> of the bug.

Sorry I cannot tell whether the error still exists in 8.10
because I switched over to Debian (testing) a long time ago.
I had and have no problems there with inetd and ftpd.

Hans

Revision history for this message
Ralph Janke (txwikinger) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Revision history for this message
Hans Streibel (hans-streibel) wrote :

Well, the error still exists.
However it is not Ubuntu specific but belongs to the package inetutils-inetd.

I switched over to Debian testing some time ago and have the same error there, too.
inetutils-inetd version: 2:1.5.dfsg.1-9 (dpkg -s)

(BTW: openbsd-inetd works fine)

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for inetutils (Ubuntu) because there has been no activity for 60 days.]

Changed in inetutils (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.