Proftpd HELP PLEASE! I'm begging!!
Ryan Collier
yellowdog-general@lists.terrasoftsolutions.com
Mon May 27 17:16:01 2002
> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--B_3105371772_23116680
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
Ok, I apologize in advance for the overly gaudy caps and exclamation, but
this darn ftp server has gotten me really ticked off.
Here is what goes down when I try to ftp to my server either locally or
remote (internet):
$ ftp
Ftp> op
(to) extranet.domain.com
Connected to extranet.domain.com (12.34.56.789).
Compiled-in modules:
Ftp>=20
And that's as far as I get.
Trying to FTP through a client, such as fetch, gives me this result:
(From the Fetch transcript)
Connecting to extranet.domain.com port 21 (5/27/02 7:05:18 PM)
Compiled-in modules:
mod_core.c
mod_auth.c
mod_xfer.c
mod_site.c
mod_ls.c
mod_unixpw.c
mod_log.c
mod_pam.c
mod_linuxprivs.c
mod_ratio.c
mod_readme.c
ERROR: The server dropped the connection, (it may be too busy).
Running netstat -lp gives:
[root@extranet xinetd.d]# netstat -lp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 *:http *:*
LISTEN 732/httpd
tcp 0 0 *:x11 *:*
LISTEN 729/X
tcp 0 0 *:ftp *:*
LISTEN 1170/xinetd
tcp 0 0 *:ssh *:*
LISTEN 567/sshd
tcp 0 0 *:telnet *:*
LISTEN 1170/xinetd
udp 0 0 *:922 *:*
1170/xinetd
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name
Path
unix 2 [ ACC ] STREAM LISTENING 932 729/X
/tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 824 605/gpm
/dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 883 675/xfs
/tmp/.font-unix/fs7100
Active IPX sockets
Proto Recv-Q Send-Q Local Address Foreign Address
State
---
Running ps =ADef and I don=B9t see any ftp process running...
Well, that's as much info as I think I can provide.
I've really tried to solve this myself, but (obviously) I've had no luck.
I've checked my proftpd.conf file, it looks ok. And I've check the
xinetd.conf file, it looks kosher... I'm just really puzzled? I have telnet
and httpd up and running nicely.
Below are what my files look like
-----proftpd.conf snip-----
# This default proftpd configuration establishes a single server
# and a single anonymous login.
ServerName "ProFTPD"
ServerType inetd
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
--More--(44%)
# Turn off Reverse DNS lookups
UseReverseDNS Off
# Turn off Identd lookups
IdentLookups Off
# Set the user and group that the server normally runs at.
User nobody
Group nobody
# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite on
</Directory>
# A basic anonymous configuration
#<Anonymous ~ftp>
# User ftp
# Group ftp
# RequireValidShell off
# We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
# MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayFirstChdir .message
# # Limit WRITE everywhere in the anonymous chroot
# <Directory *>
# <Limit WRITE>
# DenyAll
# </Limit>
# </Directory>
#</Anonymous>
---end proftpd.conf---
---xinetd.conf snip----
#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
instances =3D 60
log_type =3D SYSLOG authpriv
log_on_success =3D HOST PID
log_on_failure =3D HOST
cps =3D 25 30
}
includedir /etc/xinetd.d/
---end xinetd.conf----
----snip proftpd (located in xinetd.d directory)----
service ftp
{
socket_type =3D stream
wait =3D no
nice =3D 10
user =3D root
server =3D /usr/sbin/proftpd
server_args =3D -l
instances =3D 4
log_on_success +=3D DURATION HOST USERID
disable =3D no
}
---end proftpd----
Cheers,
Ryan
--B_3105371772_23116680
Content-type: text/html; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Proftpd HELP PLEASE! I'm begging!!</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Verdana">Ok, I apologize in advance for the overly gaudy caps a=
nd exclamation, but this darn ftp server has gotten me really ticked off.<BR=
>
<BR>
Here is what goes down when I try to ftp to my server either locally or rem=
ote (internet):<BR>
<BR>
$ ftp<BR>
Ftp> op<BR>
(to) extranet.domain.com<BR>
Connected to extranet.domain.com (12.34.56.789).<BR>
Compiled-in modules:<BR>
Ftp> <BR>
<BR>
And that's as far as I get.<BR>
<BR>
Trying to FTP through a client, such as fetch, gives me this result:<BR>
<BR>
(From the Fetch transcript)<BR>
<BR>
Connecting to extranet.domain.com port 21 (5/27/02 7:05:18 PM)<BR>
Compiled-in modules:<BR>
mod_core.c<BR>
mod_auth.c<BR>
mod_xfer.c<BR>
mod_site.c<BR>
mod_ls.c<BR>
mod_unixpw.c<BR>
mod_log.c<BR>
mod_pam.c<BR>
mod_linuxprivs.c<BR>
mod_ratio.c<BR>
mod_readme.c<BR>
<BR>
ERROR: The server dropped the connection, (it may be too busy).<BR>
<BR>
<BR>
Running netstat -lp gives:<BR>
<BR>
[root@extranet xinetd.d]# netstat -lp<BR>
Active Internet connections (only servers)<BR>
Proto Recv-Q Send-Q Local Address  =
; Foreign Address  =
; State PID/Program name<BR>
tcp 0 &nb=
sp;0  =
; *:http &n=
bsp; *:* &n=
bsp; =
LISTEN &nb=
sp; 732/httpd<BR>
tcp 0 &nb=
sp;0  =
; *:x11 &nb=
sp; *:* &nb=
sp; &=
nbsp; LISTEN &nbs=
p; 729/X<BR>
tcp 0 &nb=
sp;0  =
; *:ftp &nb=
sp; *:* &nb=
sp; &=
nbsp; LISTEN &nbs=
p; 1170/xinetd<BR>
tcp 0 &nb=
sp;0  =
; *:ssh &nb=
sp; *:* &nb=
sp; &=
nbsp; LISTEN &nbs=
p; 567/sshd<BR>
tcp 0 &nb=
sp;0  =
; *:telnet =
*:* =
&nbs=
p; LISTEN 1170/xi=
netd<BR>
udp 0 &nb=
sp;0  =
; *:922 &nb=
sp; *:* &nb=
sp; &=
nbsp;  =
; 1170/xinetd<BR>
<BR>
<BR>
Active UNIX domain sockets (only servers)<BR>
Proto RefCnt Flags Type &nb=
sp; State I=
-Node PID/Program name Path<BR>
unix 2 [ ACC ] =
STREAM LISTENING 932 &=
nbsp; 729/X  =
; /tmp/.X11-unix/X0<BR>
unix 2 [ ACC ] =
STREAM LISTENING 824 &=
nbsp; 605/gpm &nb=
sp; /dev/gpmctl<BR>
unix 2 [ ACC ] =
STREAM LISTENING 883 &=
nbsp; 675/xfs &nb=
sp; /tmp/.font-unix/fs7100<BR>
Active IPX sockets<BR>
Proto Recv-Q Send-Q Local Address  =
; Foreign Address  =
; State<BR>
---<BR>
<BR>
<BR>
<BR>
Running ps –ef and I don’t see any ftp process running...<BR>
<BR>
Well, that's as much info as I think I can provide.<BR>
<BR>
I've really tried to solve this myself, but (obviously) I've had no luck. I=
've checked my proftpd.conf file, it looks ok. And I've check the xinetd.con=
f file, it looks kosher... I'm just really puzzled? I have telnet and httpd =
up and running nicely.<BR>
<BR>
Below are what my files look like<BR>
<BR>
-----proftpd.conf snip-----<BR>
<BR>
# This default proftpd configuration establishes a single server<BR>
# and a single anonymous login.<BR>
<BR>
ServerName &nbs=
p; "ProFTPD&=
quot;<BR>
ServerType &nbs=
p; inetd<BR>
DefaultServer &=
nbsp; on<BR>
<BR>
# Port 21 is the standard FTP port.<BR>
Port &nbs=
p; &n=
bsp; 21<BR>
<BR>
# Umask 022 is a good standard umask to prevent new dirs and files<BR>
# from being group and world writable.<BR>
Umask &nb=
sp; &=
nbsp; 022<BR>
<BR>
# To prevent DoS attacks, set the maximum number of child processes<BR>
# to 30. If you need to allow more than 30 concurrent connections<BR>
# at once, simply increase this value. Note that this ONLY works<BR>
# in standalone mode, in inetd mode you should use an inetd server<BR>
# that allows you to limit maximum number of processes per service<BR>
# (such as xinetd)<BR>
MaxInstances &n=
bsp; 30<BR>
<BR>
--More--(44%)<BR>
# Turn off Reverse DNS lookups<BR>
UseReverseDNS &=
nbsp; Off<BR>
<BR>
# Turn off Identd lookups<BR>
IdentLookups &n=
bsp; Off<BR>
<BR>
# Set the user and group that the server normally runs at.<BR>
User &nbs=
p; &n=
bsp; nobody<BR>
Group &nb=
sp; &=
nbsp; nobody<BR>
<BR>
# Normally, we want files to be overwriteable.<BR>
<Directory /*><BR>
AllowOverwrite =
on<BR>
</Directory><BR>
<BR>
# A basic anonymous configuration<BR>
#<Anonymous ~ftp><BR>
# User &n=
bsp; =
ftp<BR>
# Group &=
nbsp;  =
; ftp<BR>
# RequireValidShell &=
nbsp; off<BR>
<BR>
# We want clients to be able to login with "anonymous"=
; as well as "ftp"<BR>
# UserAlias &nb=
sp; anonymous ftp<BR>
<BR>
# Limit the maximum number of anonymous logins<BR>
# MaxClients &n=
bsp; 10<BR>
<BR>
# We want 'welcome.msg' displayed at login, and '.message' disp=
layed<BR>
# in each newly chdired directory.<BR>
# DisplayLogin =
welcome.msg<BR>
# DisplayFirstChdir &=
nbsp; .message<BR>
<BR>
# # Limit WRITE everywhere in the anonymous chroot<BR>
# <Directory *><BR>
<BR>
# <Limit WRITE><BR>
# DenyAll<BR>
# </Limit><BR>
<BR>
# </Directory><BR>
<BR>
#</Anonymous><BR>
---end proftpd.conf---<BR>
<BR>
<BR>
---xinetd.conf snip----<BR>
<BR>
#<BR>
# Simple configuration file for xinetd<BR>
#<BR>
# Some defaults, and include /etc/xinetd.d/<BR>
<BR>
defaults<BR>
{<BR>
instances  =
; =3D 60<BR>
log_type =
=3D SY=
SLOG authpriv<BR>
log_on_success =
=3D HOST PID<BR>
log_on_failure =
=3D HOST<BR>
cps  =
; &nb=
sp; =3D 25 30<BR>
}<BR>
<BR>
includedir /etc/xinetd.d/<BR>
---end xinetd.conf----<BR>
<BR>
<BR>
----snip proftpd (located in xinetd.d directory)----<BR>
<BR>
service ftp<BR>
{<BR>
socket_type &nb=
sp; =3D stream<BR>
wait &nbs=
p; &n=
bsp; =3D no<BR>
nice &nbs=
p; &n=
bsp; =3D 10<BR>
user &nbs=
p; &n=
bsp; =3D root<BR>
server &n=
bsp; =
=3D /usr/sbin/proftpd<BR>
server_args &nb=
sp; =3D -l<BR>
instances  =
; =3D 4<BR>
log_on_success =
+=3D DURATION HOST USERID<BR>
disable &=
nbsp;  =
;=3D no<BR>
}<BR>
---end proftpd----<BR>
<BR>
<BR>
Cheers,<BR>
<BR>
Ryan<BR>
</FONT>
</BODY>
</HTML>
--B_3105371772_23116680--