How to Install VSFTP in CentOS 6.4/Linux

VSFTP Server Configuration in CentOS :


To Configure the vsftpd in the Linux Server or in CentOS, you need to perform certain configurations in the linux server. So follow the steps which was given below to configure the ftp server in the CentOS or in any other linux server.

Step 1: Install vsftp Packages

Use the below command to install the vsftpd packages.

yum install vsftpd*
yum install ftp*

Step 2: Configure vsftpd Service

Use the below command to make the vsftpd service to be on at the server startup.

chkconfig vsftpd on

Step 3: Restart vsftpd Services

User the below command to restart the vsftpd services.

service vsftpd restart

Step 4: Configure vsftpd.conf

Enter the following contents in the vsftpd.conf file

xferlog_std_format=NO (to get vsftpd log format)

Step 5: Configure Firewall Rules

Use the below command to setup the firewall rules to allow the port 21 through the linux firewall.

iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
service iptables save

Step 6: Configure Ftp Users & FTP Group

use the below command to add the new users and new groups.

useradd ftpuser
groupadd ftpgrp

Set the Profile Path of the FTP User to the FTP Shared Folder

Profile Path : /ftpshare

Step 7: Configure FTP Shared folder

Use the below command to make and directory and give permissions to the shared folder to the newly created users and groups.

mkdir /ftpshare
chown -R ftpuser:ftpgrp ftpshare/
chmod -R 0770 ftpshare/

Step 8: Add FTP Users to VSFTP

vi /etc/vsftpd/vsftpd.conf

Create a chroot_list file

vi /etc/vsftpd/chroot_list

Add the users in the chroot_list file

#List of Users allowed to access VSFTP

Step 8: Restart the vsdtpd Services

service vsftpd restart

After configuring all these steps, if the vsftpd server was not working properly or if it didn’t give any response then try to disable the firewall and check. It that too didn’t work then try to disable the SELINUX and try to access the vsftpd server.


You may also like...

6 Responses

  1. katelynSn says:

    Credo che si sono errati. Dobbiamo discutere.

  2. gopro diving says:

    Heya i’m for the first time here. I found this board and I
    find It really useful & it helped me out much. I hope to give something back and aid others like you helped me.

  3. It is perfect time to make some plans for the future and it is time to be
    happy. I have read this post and if I could I want to suggest you some interesting things or suggestions.
    Perhaps you can write next articles referring to this
    article. I want to read even more things about it!

  4. Basil says:

    Link exchange is nothing else but it is
    only placing the other person’s website link on your page
    at suitable place and other person will also do same in support of you.

  5. Francisco says:

    What’s up to every one, the contents existing at this web page are
    actually remarkable for people knowledge, well, keep up the
    good work fellows.

  6. Nadene says:

    I visited multiple blogs but the audio quality for audio songs existing at
    this web page is really marvelous.

Leave a Reply

Your email address will not be published. Required fields are marked *