{"id":51,"date":"2015-09-07T13:58:35","date_gmt":"2015-09-07T13:58:35","guid":{"rendered":"http:\/\/onlinelab.info\/?p=51"},"modified":"2015-09-07T13:58:35","modified_gmt":"2015-09-07T13:58:35","slug":"installing-proftpd-server-on-rhelcentos-7","status":"publish","type":"post","link":"https:\/\/www.asianux.org.vn\/index.php\/2015\/09\/07\/installing-proftpd-server-on-rhelcentos-7\/","title":{"rendered":"Installing ProFTPD Server on RHEL\/CentOS 7"},"content":{"rendered":"<p><strong>ProFTPD<\/strong> is an Open Source FTP Server and one of the most used, secure and reliable file transfer daemons on Unix environments, due to its file configurations simplicity speed and easy setup.<\/p>\n<div style=\"width: 610px;\"><a href=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Install-Proftpd-in-centos.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8527\" style=\"display: inline;\" src=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Install-Proftpd-in-centos.png\" alt=\"Install Proftpd In CentOS 7\" width=\"600\" height=\"400\" data-lazy-loaded=\"true\" title=\"\"><br \/>\n<\/a><\/p>\n<div>Install Proftpd In RHEL\/CentOS 7<\/div>\n<\/div>\n<h4>Requirements<\/h4>\n<ol>\n<li><a href=\"http:\/\/www.tecmint.com\/centos-7-installation\/\" target=\"_blank\" rel=\"noopener\">CentOS 7 Minimal Installation<\/a><\/li>\n<li><a href=\"http:\/\/www.tecmint.com\/redhat-enterprise-linux-7-installation\/\" target=\"_blank\" rel=\"noopener\">Red Hat Enterprise Linux 7 Installation<\/a><\/li>\n<li><a href=\"http:\/\/www.tecmint.com\/configure-network-interface-in-rhel-centos-7-0\/\" target=\"_blank\" rel=\"noopener\">Configure Static IP Address on System<\/a><\/li>\n<\/ol>\n<p>This tutorial will guide you on how you can install and use <strong>ProFTPD<\/strong> Server on<strong> CentOS<\/strong>\/<strong>RHEL 7<\/strong> Linux distributions for a simple file transfer from your local system accounts to remote systems.<\/p>\n<h3>Step 1: Install Proftpd Server<\/h3>\n<p><strong>1.<\/strong> Official RHEL\/CentOS 7 repositories doesn\u2019t provide any binary package for ProFTPD Server, so you need to add extra package repositories on your system provided by <b>EPEL 7 Repo<\/b>, using the following command.<\/p>\n<pre># rpm -Uvh http:\/\/ftp.astral.ro\/mirrors\/fedora\/pub\/epel\/beta\/7\/x86_64\/epel-release-7-0.2.noarch.rpm<\/pre>\n<div style=\"width: 630px;\"><a href=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Install-EPEL-in-CentOS-7.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8515\" style=\"display: inline;\" src=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Install-EPEL-in-CentOS-7-620x130.png\" alt=\"Install EPEL in CentOS 7\" width=\"620\" height=\"130\" data-lazy-loaded=\"true\" title=\"\"><br \/>\n<\/a><\/p>\n<div>Install EPEL in RHEL\/CentOS 7<\/div>\n<\/div>\n<p><strong>2.<\/strong> Before you start installing ProFTPD Server, edit your machine hosts file, change it accordingly to your system <strong>FQDN<\/strong> and test the configurations to reflect your system domain naming.<\/p>\n<pre># nano \/etc\/hosts<\/pre>\n<p>Here add your system FQDN on 127.0.0.1 localhost line like in the following example.<\/p>\n<pre>127.0.0.1 server.centos.lan localhost localhost.localdomain<\/pre>\n<p>Then edit <b>\/etc\/hostname<\/b> file to match the same system FQDN entry like in the screenshots below.<\/p>\n<pre># nano \/etc\/hostname<\/pre>\n<div style=\"width: 630px;\"><a href=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Open-Hostname-File.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8517\" style=\"display: inline;\" src=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Open-Hostname-File-620x151.png\" alt=\"Open Hostname File\" width=\"620\" height=\"151\" data-lazy-loaded=\"true\" title=\"\"><br \/>\n<\/a><\/p>\n<div>Open Hostname File<\/div>\n<\/div>\n<div style=\"width: 626px;\"><a href=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Add-Hostname-in-Hosts.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8518\" style=\"display: inline;\" src=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Add-Hostname-in-Hosts.png\" alt=\"Add Hostname in Hosts\" width=\"616\" height=\"191\" data-lazy-loaded=\"true\" title=\"\"><br \/>\n<\/a><\/p>\n<div>Add Hostname in Hosts<\/div>\n<\/div>\n<p><strong>3.<\/strong> After you have edited the host files, test your local DNS resolution using the following commands.<\/p>\n<pre># hostname\n# hostname -f     ## For FQDN\n# hostname -s     ## For short name<\/pre>\n<div style=\"width: 603px;\"><a href=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Verify-System-Hostname.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8520\" style=\"display: inline;\" src=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Verify-System-Hostname.png\" alt=\"How to Check Hostname in CentOS\" width=\"593\" height=\"243\" data-lazy-loaded=\"true\" title=\"\"><br \/>\n<\/a><\/p>\n<div>Verify System Hostname<\/div>\n<\/div>\n<p><strong>4.<\/strong> Now it\u2019s time to install ProFTPD Server on your system and some required ftp utilities that we will be using later by issuing following command.<\/p>\n<pre># yum install proftpd proftpd-utils<\/pre>\n<div style=\"width: 630px;\"><a href=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Install-Proftpd-Server.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8521\" style=\"display: inline;\" src=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Install-Proftpd-Server-620x332.png\" alt=\"Install FTP in CentOS\" width=\"620\" height=\"332\" data-lazy-loaded=\"true\" title=\"\"><br \/>\n<\/a><\/p>\n<div>Install Proftpd Server<\/div>\n<\/div>\n<p><strong>5.<\/strong> After the server is installed, start and manage Proftpd daemon by issuing the following commands.<\/p>\n<pre># systemctl start proftpd\n# systemctl status proftpd\n# systemctl stop proftpd\n# systemctl restart proftpd<\/pre>\n<div style=\"width: 630px;\"><a href=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Start-Proftpd-Server.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8523\" style=\"display: inline;\" src=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Start-Proftpd-Server-620x262.png\" alt=\"Start Proftpd Server\" width=\"620\" height=\"262\" data-lazy-loaded=\"true\" title=\"\"><br \/>\n<\/a><\/p>\n<div>Start Proftpd Server<\/div>\n<\/div>\n<h3>Step 2: Add Firewall Rules and Access Files<\/h3>\n<p><strong>6.<\/strong> Now, your ProDTPD Server runs and listen for connections, but it\u2019s not available for outside connections due to Firewall policy. To enable outside connections make sure you add a rule which opens port <b>21<\/b>, using <b>firewall-cmd<\/b> system utility.<\/p>\n<pre># firewall-cmd \u2013add-service=ftp   ## On fly rule\n# firewall-cmd \u2013add-service=ftp   --permanent   ## Permanent rule\n# systemctl restart firewalld.service<\/pre>\n<div style=\"width: 630px;\"><a href=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Open-Proftpd-Port.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8524\" style=\"display: inline;\" src=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Open-Proftpd-Port-620x200.png\" alt=\"Open FTP Port in CentOS\" width=\"620\" height=\"200\" data-lazy-loaded=\"true\" title=\"\"><br \/>\n<\/a><\/p>\n<div>Open Proftp Port in Firewall<\/div>\n<\/div>\n<p><strong>7.<\/strong> The most simple way to access your FTP server from remote machines is by using a browser, redirecting to your server IP Address or domain name using ftp protocol on URL.<\/p>\n<pre>ftp:\/\/domain.tld\n\nOR\n\nftp:\/\/ipaddress<\/pre>\n<p><strong>8.<\/strong> The default configuration on Proftpd Server uses valid system local accounts credentials to login and access your account files which is your <b>$HOME<\/b> system path account, defined in <b>\/etc\/passwd<\/b> file.<\/p>\n<div style=\"width: 586px;\"><a href=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Access-Proftpd.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8525\" style=\"display: inline;\" src=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Access-Proftpd.png\" alt=\"Access Proftpd from Browser\" width=\"576\" height=\"309\" data-lazy-loaded=\"true\" title=\"\"><br \/>\n<\/a><\/p>\n<div>Access Proftpd from Browser<\/div>\n<\/div>\n<div style=\"width: 593px;\"><a href=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/User-Files.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8526\" style=\"display: inline;\" src=\"http:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/User-Files.png\" alt=\"Index of Proftpd Files\" width=\"583\" height=\"385\" data-lazy-loaded=\"true\" title=\"\"><br \/>\n<\/a><\/p>\n<div>Index of Proftpd Files<\/div>\n<\/div>\n<p><strong>9.<\/strong> To make ProFTPD Server automatically run after system reboot, aka enable it system-wide, issue the following command.<\/p>\n<pre># systemctl enable proftpd<\/pre>\n<p>That\u2019s it! Now you can access and manage your account files and folders using FTP protocol using whether a browser or other more advanced programs, such as <a href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\" rel=\"nofollow noopener\">FileZilla<\/a>, which is available on almost any platforms, or <a href=\"http:\/\/winscp.net\/eng\/index.php\" target=\"_blank\" rel=\"nofollow noopener\">WinSCP<\/a>, an excellent File Transfer program that runs on Windows based systems.<br \/>\nOn the next series of tutorials concerning ProFTPD Server on RHEL\/CentOS 7, I shall discuss more advanced features like enabling Anonymous account, use TLS encrypted file transfers and adding Virtual Users.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ProFTPD is an Open Source FTP Server and one of the most used, secure and reliable file transfer daemons on Unix environments, due to its file configurations simplicity speed and easy setup. Install Proftpd In&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":0,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}