In this tutorial we are going to learn how to install ProFTPD on CentOS 7. We will also install and configure its prerequisites. ProFTPD is an open source FTP server. It is one of the most utilized, protected and reliable file transfer daemons on Unix environments, as a result of its file configurations simplicity speed and easy setup.
I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
Install ProFTPD on CentOS 7
Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:
yum -y install epel-release yum -y update
Step 2. Installing ProFTPD on CentOS 7.
You can install the ProFTPD as follows:
yum install -y proftpd proftpd-utils
Once this process is concluded, we will run the following lines:
systemctl start proftpd.service systemctl enable proftpd.service
You can check the ProFTPD version as follows:
Step 3. Allow ProFTPD Through the Firewall.
Allow the default FTP port, port 21, through firewalld:
firewall-cmd --add-service=ftp --permanent firewall-cmd –reload
Step 4. Create a ProFTPD user.
First, creating a group ftpgroup and user ramona for ProFTPD. I will restrict the user anu with home directory as /ftp:
Next you can add the user ramona in ftpgroup:
useradd -G ftpgroup ramona -s /sbin/nologin -d /ftp
Change the password for user ‘ramona’:
email@example.com ~]# passwd ramona Changing password for user ramona. New password: <--ftppassword Retype new password: <--ftppassword passwd: all authentication tokens updated successfully. [firstname.lastname@example.org ~]#
Then, you need to protect the /ftp directory from removing and renaming its content by any user, so we will change the directory permissions as follows:
chmod -R 1777 /ftp/
Now you can do login with the user and password at ftp://Server-IP, Here the user= ‘ramona’ and password= ‘y0urpa55word’
Congratulation’s! You have successfully install ProFTPD on your CentOS 7 server. Thanks for using this tutorial for installing ProFTPD open source FTP server on CentOS 7 system.