ProFTPD is a highly configurable and secure FTP server software. Below are the steps to install and configure ProFTPD on CentOS.
Installation:
To install ProFTPD, use the dnf package manager with the EPEL and CRB repositories enabled.
[root@www ~]# dnf --enablerepo=epel,crb -y install proftpd
Configuration:
Edit the main ProFTPD configuration file.
[root@www ~]# vi /etc/proftpd.conf
ServerName "www.emc.world"
ServerAdmin root@emc.world
ExtendedLog /var/log/proftpd/access.log WRITE,READ default
ExtendedLog /var/log/proftpd/auth.log AUTH auth
User Access Control:
Manage users who are prohibited from accessing FTP.
[root@www ~]# vi /etc/ftpusers
Add users to this file to deny them FTP access, e.g., test.
Enable and Start ProFTPD:
Enable and start the ProFTPD service.
[root@www ~]# systemctl enable --now proftpd
SELinux Configuration:
If SELinux is enabled, adjust the boolean setting for full FTP access.
[root@www ~]# setsebool -P ftpd_full_access on
Configure Firewall:
Allow FTP service through Firewalld.
[root@www ~]# firewall-cmd --add-service=ftp
[root@www ~]# firewall-cmd --runtime-to-permanent
With these steps, ProFTPD will be properly installed and configured on your CentOS system. The configuration includes setting the server name, logging, user access control, and ensuring compatibility with SELinux and Firewalld. Remember to keep the server updated and monitor the logs for any unusual activity to maintain a secure FTP environment.