Failed to bind listening on IPv4 socket

I followed all the steps as shown in the INSTALL vsftpd file. and finally executed this command

/ usr / local / sbin / vsftpd &

I got this error:

[root @localhost vsftpd-2.0.5] # 500 OOPS: cannot bind listening on IPv4 socket

please, help

+4
source share
2 answers

OK, everything is done. I added a line to the end of the vsftpd.conf file:

# This string is the name of the PAM service vsftpd will use. pam_service_name=vsftpd [1]

now it works.

[1]: Next : the " # " line is a comment and optional, but it’s usually a good practice to have them in case you need to go back

+3
source

You are getting this error, probably due to xinetd ftp working.

The following errors will resolve the following errors:

  • Vsftpd error : 500 OOPS: cannot bind listening on IPv4 socket

  • Ncftpget error : server hangs immediately after connection, for ncftpget

Follow the procedure below to fix the error:

A) To see which ftp service is running, use

 $ lsof -i | grep ftp (Become root and run this command) 

B) To stop xinetd:

 $ sudo service xinetd stop 

C) After stopping xinetd, restart the vsftpd service by typing:

 $ /etc/init.d/vsftpd restart (Become root and run this command) 

D) Also check vsftpd.conf with this

 listen=YES local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES use_localtime=YES xferlog_enable=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/private/vsftpd.pem 
0
source

Source: https://habr.com/ru/post/1337447/


All Articles