Re: FTP server strangeness


Subject: Re: FTP server strangeness
From: Keary Suska (hierophant@pcisys.net)
Date: Fri Jan 18 2002 - 10:55:09 MST


on 1/18/02 12:12 AM, rbrandt@sbdsl.com purportedly said:

>
>> on 1/17/02 12:21 PM, rbrandt@sbdsl.com purportedly said:
> Jan 16 22:40:31 6116 ftpd[922]: lost connection to 10.1.20.150 [10.1.20.150]
> Jan 16 22:40:31 6116 ftpd[922]: FTP session closed
>
> tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
>
> Jan 17 22:08:20 6116 proftpd[842]: 6116.csd-bes.net - Failed binding to
> 0.0.0.0, port 21: Address already in use
> Jan 17 22:08:20 6116 proftpd[842]: 6116.csd-bes.net - Check the ServerType
> directive to ensure you are configured correctly.

Considering the information above, one issue is that the the first set of
log entries are probably made by wu-ftpd. You can netstat -lp (as root) to
get the pid and process name of all listening sockets, which will tell you
who is listening for ftp connections. If it is xinetd, and considering that
the second set of log entries occur when you attempt to connect, you should
look at the proftpd.conf file (probably in /etc). Look for the ServerTupe
directive--it must say "inetd". If it says "standalone", there is your
problem. This means daemon mode, so when proftp launches it tries to bind to
the ftp port, which it can't, because inetd already has it.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"



This archive was generated by hypermail 2a24 : Fri Jan 18 2002 - 11:09:50 MST