Hi,
I'm trying to buld an ftpserver using proftpd. I've succesfully compiled and installed (/usr/local/ftpd) the server on fedora core2 (new install). Now, I've tried to configure the server but everytime I try to connect I get this:
Code:
Connected to localhost (127.0.0.1).
220 ProFTPD 1.2.10 Server (DuP Ftp server) [127.0.0.1]
Name (localhost:root): duphalac
331 Password required for duphalac.
Password:
230 User duphalac logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,128,98).
421 Service not available, remote server has closed connection
ftp> bye
Here's my config file:
Code:
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "DuP Ftp server"
ServerType standalone
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
# Set the user and group under which the server will run.
User proftpd
Group proftpd
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
User ftp
Group ftp
# 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
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
And the debug output:
Code:
- parsing '/usr/local/ftpd/etc/proftpd.conf' configuration
localhost.localdomain - deleting existing scoreboard '/usr/local/ftpd/var/proftpd/proftpd.scoreboard'
localhost.localdomain - ProFTPD 1.2.10 (stable) (built wo nov 3 14:27:45 CET 2004) standalone mode STARTUP
localhost.localdomain (localhost.localdomain[127.0.0.1]) - FTP session requested from unknown class
localhost.localdomain (localhost.localdomain[127.0.0.1]) - connected - local : 127.0.0.1:21
localhost.localdomain (localhost.localdomain[127.0.0.1]) - connected - remote : 127.0.0.1:32916
localhost.localdomain (localhost.localdomain[127.0.0.1]) - FTP session opened.
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching PRE_CMD command 'USER duphalac' to mod_core
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching PRE_CMD command 'USER duphalac' to mod_core
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching PRE_CMD command 'USER duphalac' to mod_auth
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching CMD command 'USER duphalac' to mod_auth
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching LOG_CMD command 'USER duphalac' to mod_log
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching CMD command 'PASS (hidden)' to mod_auth
localhost.localdomain (localhost.localdomain[127.0.0.1]) - PAM(duphalac): Authentication failure.
localhost.localdomain (localhost.localdomain[127.0.0.1]) - USER duphalac: Login successful.
localhost.localdomain (localhost.localdomain[127.0.0.1]) - Preparing to chroot() the environment, path = '/home/duphalac'
localhost.localdomain (localhost.localdomain[127.0.0.1]) - Environment successfully chroot()ed.
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching POST_CMD command 'PASS (hidden)' to mod_cap
localhost.localdomain (localhost.localdomain[127.0.0.1]) - mod_cap/1.0: capabilities '= cap_net_bind_service+ep'
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching POST_CMD command 'PASS (hidden)' to mod_log
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching POST_CMD command 'PASS (hidden)' to mod_ls
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching POST_CMD command 'PASS (hidden)' to mod_auth
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching LOG_CMD command 'PASS (hidden)' to mod_log
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching PRE_CMD command 'SYST' to mod_core
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching PRE_CMD command 'SYST' to mod_core
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching CMD command 'SYST' to mod_core
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching LOG_CMD command 'SYST' to mod_log
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching PRE_CMD command 'PASV' to mod_core
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching PRE_CMD command 'PASV' to mod_core
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching CMD command 'PASV' to mod_core
localhost.localdomain (localhost.localdomain[127.0.0.1]) - Entering Passive Mode (127,0,0,1,128,150).
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching LOG_CMD command 'PASV' to mod_log
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching PRE_CMD command 'LIST' to mod_core
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching PRE_CMD command 'LIST' to mod_core
localhost.localdomain (localhost.localdomain[127.0.0.1]) - dispatching CMD command 'LIST' to mod_ls
localhost.localdomain (localhost.localdomain[127.0.0.1]) - ProFTPD terminating (signal 11)
localhost.localdomain (localhost.localdomain[127.0.0.1]) - FTP session closed.
I hope someone can help me...