I can't start vsftpd

General support questions
haison1991
Posts: 1
Joined: 2017/10/16 04:31:25

I can't start vsftpd

Postby haison1991 » 2017/10/16 04:36:21

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

hemanthbitra
Posts: 203
Joined: 2015/11/11 13:52:53
Location: Hyderbad,Telangana,India
Contact:

Re: I can't start vsftpd

Postby hemanthbitra » 2017/10/17 06:34:50

Hello haison1991,

change listen=YES to NO

start the vsftpd again it will work.

Regards,
Hemanth

lightman47
Posts: 526
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: I can't start vsftpd

Postby lightman47 » 2017/10/17 13:48:16

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

User avatar
TrevorH
Forum Moderator
Posts: 20978
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: I can't start vsftpd

Postby TrevorH » 2017/10/17 13:49:48

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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke