LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   vsftpd error 421: Service not available (https://www.linuxquestions.org/questions/linux-networking-3/vsftpd-error-421-service-not-available-220802/)

akudewan 08-22-2004 01:49 AM

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:

Code:

akudewan@ranjan404:~$ ftp 10.10.19.152
Connected to 10.10.19.152.
421 Service not available, remote server has closed connection
ftp> wtf?
?Invalid command
ftp>

my /etc/vsftpd.conf is as follows:
Code:

anonymous_enable=NO
local_enable=YES
write_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
ftpd_banner=Welcome to Aku's PC
ls_recurse_enable=YES
listen=YES

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 :confused:

akudewan 08-22-2004 03:03 AM

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 :)

Grave 08-22-2004 01:54 PM

service vsftpd open?

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

this is print 21.ftp open ....good luck.

tito_carnivora 11-14-2004 07:36 PM

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 192.168.0.2
Connected to 192.168.0.2.
220 (vsFTPd 1.2.1)
Name (192.168.0.2:root): anonymous
331 Please specify the password.
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

local_enable=YES
anonymous_enable=YES
#listen=YES


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 0.0.0.0:21 0.0.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


All times are GMT -5. The time now is 12:49 AM.