LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 07-11-2007, 10:27 AM   #1
mfitzpat
LQ Newbie
 
Registered: Feb 2004
Location: Boston, MA
Distribution: Centos
Posts: 27

Rep: Reputation: 15
vsftpd 421 service not available


Hi,

Trying to install vsftpd on Centos5 so anonymous user can log in. I can access ftp locally, but not remotely. Seems like something simple, but I can not find it. I believe I have the vsftpd.conf file setup correctly and I can connect locally.

ftp localhost
Connected to localhost (127.0.0.1).
220 Welcome to FTP service.
Name (localhost:mef):anonymous
331 Please specify the password.
Password: <default email>
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

When I try to connect from another system, I get the 421 message
remote:~$ ftp <ftpserver>
Connected to <ftpserver (xxx.xxx.xxx.xxx).
421 Service not available.
ftp>

My firewall allows ports 20/21. I have tested without the firewall, same results.

My /etc/pam.d/vsftpd file looks correct.
#%PAM-1.0
session optional pam_keyinit.so force revoke
auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth required pam_shells.so
auth include system-auth
account include system-auth
session include system-auth
session required pam_loginuid.so

Here is my vsftd.conf entries:

anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
dirmessage_enable=YES
anon_root=/data/incoming
xferlog_enable=YES
listen_port=21
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES


hosts.allow: vsftpd:ALL

/data: ls -l
drwxr-xr-x 2 root root 4096 Jul 10 16:20 incoming



Any help would be appreciated.
mef
 
Old 07-11-2007, 01:01 PM   #2
mfitzpat
LQ Newbie
 
Registered: Feb 2004
Location: Boston, MA
Distribution: Centos
Posts: 27

Original Poster
Rep: Reputation: 15
By commenting out
tcp_wrappers=YES in vsftpd.conf and restarting service
I am able to log in remotely.

Strange how /etc/hosts.allow
vsftpd: ALL

did not have the same affect.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd: 421 Data timeout. Reconnect. Sorry ealpert1 Linux - Networking 4 12-22-2010 06:28 AM
Debian Pure-ftpd dpkg report 421 service error icry0000 Linux - Software 0 04-18-2005 05:44 AM
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
421 Service not available, remote server has closed connection dwarf007 Linux - Networking 1 10-09-2004 07:00 AM


All times are GMT -5. The time now is 01:56 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration