How to install and configure Vsftpd on Centos

Install Vsftpd

1.Frist, use yum to install it.

yum install vsftpd

When the install is done, you can start vsftpd using following command:

service vsftpd start

Then you can login anonymous ftp server using any ftp software like FlashFXP.
Note: The default anonymous ftp user home is “/var/ftp/”.

Configure Vsftpd and add FTP user

2.Open the file /etc/vsftpd/vsftpd.conf

vi /etc/vsftpd/vsftpd.conf

Edit the configure file

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=NO
xferlog_std_format=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
chroot_local_user=YES

3.Add ftp user

adduser -d /var/ftp/ftpuser -g ftp -s /sbin/nologin ftpuser

You can change “ftpuser” to another name you like.
And you can also change the user root dir “/var/ftp/ftpuser” to another one.

4.Restart the vsftpd service

service vsftpd restart

5.Finally, you can login ftp server using your own username and password.

You can leave a response, or trackback from your own site.

5 Responses to “How to install and configure Vsftpd on Centos”

  1. Rashid Iqbal says:

    tuserlist_enable=YES

    this option should be
    tuserlist_enable =NO

    kindly check at your end as well

  2. τρελες προσφορες…

    [...]How to install and configure Vsftpd on Centos | VpsLook.com[...]…

  3. Linux Tutorials…

    [...]How to install and configure Vsftpd on Centos | VpsLook.com[...]…

  4. disneyland says:

    disneyland…

    [...]How to install and configure Vsftpd on Centos | VpsLook.com[...]…

  5. low end vps says:

    This is really attention-grabbing, You are an excessively professional blogger. I have joined your feed and look forward to in quest of more of your wonderful post. Also, I have shared your site in my social networks

Leave a Reply