Monday, June 29, 2015

HOWTO: install FTP on Fedora 22 (Vsftpd) and configure it.


Step 1: Install vsftpd

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

 # dnf -y update

Then let’s install vsftpd and any required packages:
# yum -y install vsftpd

Step 2: Configure vsftpd

We need to edit the configuration file of vsftpd:
the Vsftpd Configuration file is located on /etc/vsftpd/

Let's edit it:
# gedit /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


Set write permission to users to write on a directory, then change the write_enable setting to YES:

write_enable=YES


Make Local users as "chroot jailed" and they will be denied access to any other part of the server; change the chroot_local_user setting to YES:

chroot_local_user=YES


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

That's it..!


If you have any problem during installation just leave us a comment.

No comments:

Post a Comment

author
My Linux Tricks
MyLinuxTricks's a Blog That intersted in Linux Operating Systems and it try to share some tricks with visitors, and Help who needs help..