Ubuntu – vsftpd: 500 OOPS: could not bind listening IPv4 socket

ftpsslUbuntuvsftpd

I will use vsftpd as a ftp server. I did all changes on /etc/vsftpd.conf.

These changes are (according to digitalocean):

anonymous_enable=NO
write_enable=YES
local_enable=YES
chroot_local_user=YES

More here: https://www.digitalocean.com/community/articles/how-to-configure-vsftpd-to-use-ssl-tls-on-an-ubuntu-vps

I'v also created a ssl certificate file. (not necessary but recommended)

Still getting :

500 OOPS: could not bind listening IPv4 socket

Note:

pam_service_name=vsftpd

Netstat:

netstat -pan|grep :21;
tcp        0      0 0.0.0.0:21 0.0.0.0:*               LISTEN      30694/vsftpd

Best Answer

Much probably you have /etc/xinetd.d/ftp enabled AND pointing to /usr/sbin/vsftpd and in /etc/vsftpd.conf you have listen=YES.

Simply change it to listen=NO. The listen=YES is for standalone, if you want vsftpd to be always active then you'll have to disabled it in the xinetd config.

Related Question