How to Install and Configure vsftpd on Fedora 20

FTP (File Transfer Protocol) is probably the most popular method of uploading files to a server; a wide array of FTP servers, such as vsftpd, and clients exist for every platform.


Pre-Flight Check

  • These instructions are intended specifically for installing the vsfptd on Fedora 20. 

Step 1: Install vsftpd

Warning: FTP data is insecure; traffic is not encrypted, and all transmissions are clear text (including usernames, passwords, commands, and data). Consider securing your FTP connection with SSL/TLS.

As a matter of best practice we’ll update our packages:

 

yum -y update


Then let’s install vsftpd and any required packages:

yum -y install vsftpd


Step 2: Configure vsftpd


Let’s edit the configuration file for vsftpd:

 

vim /etc/vsftpd/vsftpd.conf


Disallow anonymous, unidentified users to access files via FTP; change the anonymous_enable setting to NO:

anonymous_enable=NO


Allow local uses to login by changing the local_enable setting to YES:

local_enable=YES


If you want local user to be able to write to a directory, then change the write_enable setting to YES:

write_enable=YES


Local users will be ‘chroot jailed’ and they will be denied access to any other part of the server; change thechroot_local_user setting to YES:

chroot_local_user=YES


Exit and save the file with the command :wq .


Restart the vsftpd service:

systemctl restart vsftpd


Then set the vsftpd service to start at boot:

systemctl enable vsftpd


Step 3: Allow vsftpd Through the Firewall


Allow the default FTP port, port 21, through firewalld:

firewall-cmd --permanent --add-port=21/tcp


And reload the firewall:

firewall-cmd --reload

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to Install WordPress in cPanel / WHM with Softaculous

WordPress is a very popular option for running a website or blog and can be used to get your...

How to Install and Connect to PostgreSQL on CentOS 7

Step 1: Add the PostgreSQL 9.3 Repository In this case we want to install PostgreSQL 9.3...

Use httpd fullstatus to Monitor Apache Status

Sometimes checking server performance can be difficult. Apache has built in utilities that help...

How to View Logs for a Docker Container

View Logs for a Docker Container If you’re currently attached to a docker instance, then...

How To Install Git on CentOS 6

Installation First, you’ll follow a simple best practice: ensuring the existing packages...

Powered by WHMCompleteSolution