How to configure ftp server in Linux

Linux uses built in vsftpd server for ftp sharing.  vsftpd is abbreviation of “Very Secure FTP Daemon”. vsftpd is an FTP server for Unix-like systems, including Linux. It has long list of configuration available to it.  Here we will setup ftp server Linux Fedora 20 will here see how to configure a simple ftp server. Current official version is 3.0.3 on vsftpd official web site as on Today ( Feb 2016). We have used Fedora 20 for configuring Fedora server.

Configure ftp server using vsftpd on Fedora Linux

Install vsftpd

check if vsftpd is already present in your system

rpm -q vsftpd

If not present install your ftp server using yum.

Go to terminal mode change to root. Type below command for installation

yum install –y vsftpd*

Configure ftp server Linux

vsftpd configuration file is


By default all local users and anonymous users are allowed to login to server. Change the write settings to YES using text editor.


Enable FTP service – vsftp

Now enable the vsftpd service.

systemctl enable vsftpd.service

Configure firewall

Configure your firewall to accept ftp connection. Write iptable rules to allow communication to through ftp ports

iptables -A INPUT -p tcp -dport 20 -j ACCEPT
iptables -A INPUT -p tcp -dport 21 -j ACCEPT

Save iptables

service iptables save

Finally you need to start vsftp service

systemctl restart vsftpd.service

Now you can access ftp from another system. This configuration is for active ftp server. I will update this post for configuring passive ftp server.