LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-03-2004, 09:29 AM   #1
DuPHaLaC
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Rep: Reputation: 0
proftpd error 421


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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Proftpd - 421 connection closed toddism Linux - Software 0 11-24-2004 04:08 PM
vsftpd error 421: Service not available akudewan Linux - Networking 3 11-14-2004 07:36 PM
421 Service not available error, ProFTPd (SuSE 9.1) neocookie Linux - Software 0 10-19-2004 11:41 AM
FTP 421 error Yellow Dog Machine gothrog Linux - Newbie 1 06-07-2004 03:35 PM
error 421 with proftpd zhoubo2004 Linux - Networking 1 01-25-2004 10:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration