Installing and Configuring Pure-FTPD on RHEL / CentOS 7

    Posted in Linux Servers on Apr 08, 2020

    linux-vps-hosting.jpg

    Step 1: When you are ready to begin, go ahead and install Pure-FTPD using yum on server.

    yum install pure-ftpd

    Step 2: after installation Edit the default configuration (/etc/pure-ftpd/pure-ftpd.conf) and uncommnet the following lines.

    PAMAuthentication yes
    
    PureDB /etc/pure-ftpd/pureftpd.pdb

    Save and close the file.

    Step 3: Configure Service pure-ftp service

    systemctl enable pure-ftpd
    
    systemctl start pure-ftpd

    Step 4: Create a new ftp user account for website account using pure-pw.

    pure-pw useradd $USERNAME -u $USER -g $GROUP -d /path/to/ftp/directory
    
    For Exmaple :  pure-pw useradd rajesh -u 1002 -g  1002 -d  /home/rajesh

    $USERNAME = FTP username

    $USER = System username (such as apache or www-data OR user id)

    $GROUP = System group name (such as apache or www-data or group ID)

    /path/to/ftp/directory = Directory location for the FTP to jail to (such as /var/www/htdocs/)

    you can get the user id and group id via : cat /etc/passwd

    Step 5: Save Pure-FTPD user database

    pure-pw mkdb
    
    systemctl reload pure-ftpd

    Ftp installation sucessfully completed . If you require further assistance contact us on :CloudTechtiq