Install & Configure FTP server on centos 7 (VSFTP)

FTP server is used to exchange files between computers over network . This guide helps you to setup ftp server on centos 7 . This guide contains configuration steps for both FTP and SFTP as well as user creation . Here  we have used VSFTP package which is secure and less vulnerable .

Setup FTP server on centos 7

Step 1 » Update your repository and install VSFTPD package .

[nepalisupport@blog~]# yum update -y  (update your installed packages)

[nepalisupport@blog~]# yum install -y vsftpd

Step 2 » After installation you can find /etc/vsftpd/vsftpd.conf file which is the main configuration file for VSFTP.
Take a backup copy before making changes.

[nepalisupport@blog~]# cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf_bak

Now open the file and make changes as below;

[nepalisupport@blog~]# vim /etc/vsftpd/vsftpd.conf

and edit following lines,

1. Find this line anonymous_enable=YES ( Line no : 12 ) and change value to NO to disable anonymous FTP access.


2. Allow local uses to login by changing local-enable


3. If you want local user to write to directory,


4. Local users will be çhroot jailed’& Denined


and add the below lines at the end of the file to enable passive mode and allow chroot writable.


Then save and exit.

Now restart and enable vsftpd services.

[nepalisupport@blog~]# systemctl restart vsftpd

[nepalisupport@blog~]# systemctl enable vsftpd

As per your system security, you can configure firewall or disable it. To fix through firewall:-

[nepalisupport@blog~]# firewall-cmd --permanent --add-port=21/tcp

[nepalisupport@blog~]# firewall-cmd --reload

That’s it, you have successfully install vsftpd on your machine.

By default your vsftpd data are stored in /home, so you can

If you cannot log in or access or get any error, then try changing chroot_local_user setting in vsftpd.conf file as,

chroot_local_user= NO

If you encounter any problem, please be free to contact us.

Thank you.

For more reading materials please click here !!!

Install & Configure FTP server on centos 7 (VSFTP)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s