Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-22-2004, 02:49 AM   #1
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Rep: Reputation: 30
vsftpd error 421: Service not available

I wanted to install an FTP server and I chose vsftpd. I dont have it running as a standalone, but I run it through inetd.

I configured /etc/vsftpd.conf and made sure that ftp ports were open (by guarddog firewall). But whenever I try to ftp my machine, I get this error:

akudewan@ranjan404:~$ ftp
Connected to
421 Service not available, remote server has closed connection
ftp> wtf?
?Invalid command
my /etc/vsftpd.conf is as follows:
ftpd_banner=Welcome to Aku's PC
I did a lot of googleing but I couldnt find out what was wrong, the only thing I got was rtfm. Well, that didnt help either.

Btw..I use slack 10, and /etc/hosts.deny is empty.

Please help
Old 08-22-2004, 04:03 AM   #2
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 30
I went to an IRC channel, and found that this is a common problem that can be solved when I start vsftpd as a standalone process, I did just that, and its working fine
Old 08-22-2004, 02:54 PM   #3
LQ Newbie
Registered: Aug 2004
Posts: 11

Rep: Reputation: 0
service vsftpd open?

check service vstfpd...check command "service vsftd status" or
"nmap -sV -sS localhost"

this is print 21.ftp open ....good luck.
Old 11-14-2004, 08:36 PM   #4
LQ Newbie
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
421 Service not available, remote server has closed connection

I have the problem with my laptop wich runs under SuSE 9.1 Proffessional
My desktop pich runns with the same sistem works just fine!

the both systems have the same software and do not run any firewalls like iptabels or the internal suse firewall

when I try to connect i am getting

DOM:/etc/xinetd.d # ftp
Connected to
220 (vsFTPd 1.2.1)
Name ( anonymous
331 Please specify the password.
230 Login successful.
ftp> dir
421 Service not available, remote server has closed connection.
ftp> ls
Segmentation fault
DOM:/etc/xinetd.d #

Example config file /etc/vsftpd.conf


cat /etc/xinetd.d/vsftpd

service ftp
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/vsftpd
# server_args =
# log_on_success += DURATION USERID
# log_on_failure += USERID
# nice = 10

the service is running under xinetd
netstat -apn|less
tcp 0 0* LISTEN 12776/xinetd

in my /etc/ftpusers there in no entry for anonymous so it is ok!

the thing that I do not unterstand in this hole situation is that my desktop with the same OS and software is running vsftpd and my laptop not!

I have tryed to run vsftpd in standalone mode with setting
listen = NO

but the shit do not work !
I am desperately and hopelessly looking for help



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd: 421 Data timeout. Reconnect. Sorry ealpert1 Linux - Networking 4 12-22-2010 07:28 AM
Debian Pure-ftpd dpkg report 421 service error icry0000 Linux - Software 0 04-18-2005 06:44 AM
421 Service not available error, ProFTPd (SuSE 9.1) neocookie Linux - Software 0 10-19-2004 12:41 PM
421 Service not available, remote server has closed connection dwarf007 Linux - Networking 1 10-09-2004 08:00 AM
error 421 with proftpd zhoubo2004 Linux - Networking 1 01-25-2004 11:38 PM

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

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