Page 1 of 1

I can't start vsftpd

Posted: 2017/10/16 04:36:21
by haison1991
Hi all,

I can't start vsftpd on my VPS.

[root@vultr centminmod]# systemctl status vsftpd
● vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor pres et: disabled)
Active: failed (Result: exit-code) since Mon 2017-10-16 03:45:39 UTC; 27min a go
Process: 27506 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited , status=1/FAILURE)

Oct 16 03:45:36 vultr.guest systemd[1]: Starting Vsftpd ftp daemon...
Oct 16 03:45:39 vultr.guest systemd[1]: vsftpd.service: control process exit...1
Oct 16 03:45:39 vultr.guest systemd[1]: Failed to start Vsftpd ftp daemon.
Oct 16 03:45:39 vultr.guest systemd[1]: Unit vsftpd.service entered failed s....
Oct 16 03:45:39 vultr.guest systemd[1]: vsftpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.


Here is my configuration:
[root@vultr centminmod]# sudo cat /etc/vsftpd/vsftpd.conf | grep -v "#"
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=abdullah
xferlog_std_format=YES
chroot_local_user=YES
listen=YES

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
dual_log_enable=YES
use_localtime=YES

Can you guys check it for me?
Thanks and best regards,
Son Hai

Re: I can't start vsftpd

Posted: 2017/10/17 06:34:50
by hemanthbitra
Hello haison1991,

change listen=YES to NO

start the vsftpd again it will work.

Regards,
Hemanth

Re: I can't start vsftpd

Posted: 2017/10/17 13:48:16
by lightman47
Did you remember to create the user ftpsecure as mentioned in the conf file?

Mine has listen=YES and works. Just make sure that listen_ipv6 is not yes (only one of the two can be yes).

Re: I can't start vsftpd

Posted: 2017/10/17 13:49:48
by TrevorH
Changing listen=yes to no will just mean it won't run as a daemon at all and will need xinetd to kick it off per transaction.