Join the community today
Become a Member

CentOS 7 Beta Branch fix pure-ftpd configuration routine for missing files

Discussion in 'Centmin Mod Github Commits' started by eva2000, Apr 1, 2015.

  1. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,671
    Local Time:
    5:54 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  2. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,671
    Local Time:
    5:54 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    For existing Centmin Mod .08 beta 02 users, you can run this command line to run a script to try and fix pure-ftpd and then you will need to manually re-create all pure-ftpd virtual FTP users as per the instructions at end of the script output

    run command/script
    Code:
    curl -sL https://bitbucket.org/snippets/eva2000/B89b/raw/master/pureftp_fix.sh | bash
    example of output and instructions for manually re-create all pure-ftpd virtual FTP users
    Code:
    curl -sL https://bitbucket.org/snippets/eva2000/B89b/raw/master/pureftp_fix.sh | bash
    
    ensure TLS Cipher preference protects against poodle attacks
    
    create /etc/pure-ftpd/pureftpd.passwd
    
    check tweaks in /etc/pure-ftpd/pure-ftpd.conf
    VerboseLog                  yes
    UnixAuthentication            yes
    # UnixAuthentication can be used only once, but they can be combined
    # together. For instance, if you use MySQLConfigFile, then UnixAuthentication,
    PassivePortRange    3000 3050
    CreateHomeDir               yes
    # 0 : disable SSL/TLS encryption layer (default).
    # 2 : refuse connections that don't use SSL/TLS security mechanisms,
    # 1) Your server has been compiled with SSL/TLS support (--with-tls),
    TLS                      2
    TLSCipherSuite           HIGH:MEDIUM:+TLSv1:!SSLv2:!SSLv3
    
    
    pure-ftpd installed
    Stopping pure-ftpd: [  OK  ]
    Starting pure-ftpd: [  OK  ]
    
    check /etc/pure-ftpd/pureftpd.passwd
    -rw------- 1 root root 0 Mar 31 17:52 /etc/pure-ftpd/pureftpd.passwd
    
    check /etc/pure-ftpd/pureftpd.pdb
    -rw------- 1 root root 2.1K Mar 31 17:52 /etc/pure-ftpd/pureftpd.pdb
    
    end of output will show
    Code:
    #########################################################################
    # Fix completed
    #########################################################################
    because /etc/pure-ftpd/pureftpd.passwd was missing, you will need to
    manually re-create your pure-ftpd virtual FTP user accounts for existing
    nginx vhost accounts using below 3 commands:
    
    where YOURUSERNAME = your FTP username
    where YOURDOMAINNAME.com = your existing domain name Nginx vhost
    #########################################################################
    # 3 commands to manually re-create virtual FTP users
    #########################################################################
    
        pure-pw useradd YOURUSERNAME -u nginx -g nginx -d /home/nginx/domains/YOURDOMAINNAME.com
        pure-pw mkdb
        service pure-ftpd restart