FTP¶
Introduction¶
1Panel uses Pure-FTPd as the FTP server. Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant FTP server. It doesn’t provide useless bells and whistles, but focuses on efficiency and ease of use. It provides simple answers to common needs, plus unique useful features for personal users as well as hosting providers.
Installing Pure-FTPd¶
- Install the EPEL repository
yum install -y epel-release
- Install Pure-FTPd
yum -y install pure-ftpd
- Configure Pure-FTPd
# The default configuration is located at /etc/pure-ftpd/pure-ftpd.conf. Modify the following parameters in the configuration file: ## Specify the path for the PureDB user database file PureDB /etc/pure-ftpd/pureftpd.pdb ## Enable logging VerboseLog yes ## Disable anonymous login NoAnonymous yes ## Enable and adjust the passive port range as needed PassivePortRange 39000 40000
- Start the Pure-FTPd service
systemctl start pure-ftpd.service
- Enable Pure-FTPd to start at boot
systemctl enable pure-ftpd.service
- Check the status of the Pure-FTPd service
systemctl status pure-ftpd.service
- Install Pure-FTPd
sudo apt-get install pure-ftpd
- Configure Pure-FTPd
## Specify the path for the PureDB user database file echo '/etc/pure-ftpd/pureftpd.pdb' > /etc/pure-ftpd/conf/PureDB ## Enable logging echo 'yes' > /etc/pure-ftpd/conf/VerboseLog ## Disable anonymous login echo 'yes' > /etc/pure-ftpd/conf/NoAnonymous ## Enable and adjust the passive port range as needed echo '39000 40000' > /etc/pure-ftpd/conf/PassivePortRange
- Create a symbolic link for the database
ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/50puredb
- Start the Pure-FTPd service
systemctl start pure-ftpd.service
- Enable Pure-FTPd to start at boot
systemctl enable pure-ftpd.service
- Check the status of the Pure-FTPd service
systemctl status pure-ftpd.service