Skip to content

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

  1. Install the EPEL repository
    yum install -y epel-release
    
  2. Install Pure-FTPd
    yum -y install pure-ftpd
    
  3. 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
    
  4. Start the Pure-FTPd service
    systemctl start pure-ftpd.service
    
  5. Enable Pure-FTPd to start at boot
    systemctl enable pure-ftpd.service
    
  6. Check the status of the Pure-FTPd service
    systemctl status pure-ftpd.service
    
  1. Install Pure-FTPd
    sudo apt-get install pure-ftpd
    
  2. 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
    
  3. Create a symbolic link for the database
    ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/50puredb
    
  4. Start the Pure-FTPd service
    systemctl start pure-ftpd.service
    
  5. Enable Pure-FTPd to start at boot
    systemctl enable pure-ftpd.service
    
  6. Check the status of the Pure-FTPd service
    systemctl status pure-ftpd.service