Welcome to Centmin Mod Community
Become a Member

I am desperate for help

Discussion in 'Virtual Private Server (VPS) hosting' started by Mlkx, Jan 12, 2017.

  1. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    7:33 PM
    Hi folks the ftp username and password i create in centos 7 is not being accepted when I enter it into Filezilla. I have lost count on many times I have tried to set it up new and to re-enter the information without success.

    This is my installation process:
    cd /usr/local/src/centminmod-master/
    ./centmin.sh

    Option 1 and then 2

    Then I enter vultr.nxtgenleads.online followed by /home/nginx/domains/vultr.nxtgenleads.online/public

    and i close it off with "24"

    Next I create my username and password:

    pure-pw useradd ftpuser -u nginx -g nginx -d /home/nginx/domains/ (sometimes I get error message "Check that [ftpuser] doesn't already exist" even if i change Ftpuser)

    After that i confirm my password twice and type :


    pure-pw mkdb && service pure-ftpd restart

    With this Ftp Username and password I should be able log in Filezilla, but I can't. This problem is driving me insane!

    Somebody please have mercy and help me
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    4:33 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    • Did you let the script generate a password for you or set your own ?
    • Did you make sure to enable explicit TLS/SSL mode and enable PASV passive mode like in 1st post here.
    • Which FTP client ? As not all FTP clients support FTP explicit TLS/SSL mode only clients listed at bottom of this post.
    • If you are having trouble with logging in using the generated pure-ftpd username and password, you can try changing the password for the pure-ftpd username with instructions outlined at Pure-FTPD Virtual FTP Users - CentminMod.com LEMP Nginx web stack for CentOS
    • Check if you're ISP IP address is being blocked by CSF Firewall. See FAQ items 40 & 41.
    From 1st post here, try the pure-pw commands to display pure-ftpd user details and change the user password. Also pure-pw manual is here and http://download.pureftpd.org/pub/pure-ftpd/doc/README.Virtual-Users

    list all pure-ftpd created virtual FTP users
    Code (Text):
    pure-pw list


    Code (Text):
    pure-pw list
    ftpuser             /usr/local/nginx/html/./                      
    ftpuser2            /usr/local/nginx/html/./                      
    ftpuser3            /usr/local/nginx/html/./                      
    ftpuser4            /home/nginx/domains/domain1.com/./            
    ftpuser6            /home/nginx/domains/sub.domain1.com/./          
    ftpuser5            /home/nginx/domains/domain2.com/./


    to delete virtual FTP user
    Code (Text):
    pure-pw userdel FTPUSERNAME
    pure-pw mkdb


    change virtual FTP user's password
    Code (Text):
    pure-pw passwd FTPUSERNAME
    pure-pw mkdb


    show full details for an specific pure-ftpd virtual FTP user
    Code (Text):
    pure-pw show FTPUSERNAME


    password is encrypted

    Code (Text):
    pure-pw show ftpuser5
    
    Login              : ftpuser5
    Password           : $1$msgfvdN0$51dhLdPGiCQpQEwtZ30kF1
    UID                : 500 (nginx)
    GID                : 500 (nginx)
    Directory          : /home/nginx/domains/domain2.com/./
    Full name          :
    Download bandwidth : 0 Kb (unlimited)
    Upload   bandwidth : 0 Kb (unlimited)
    Max files          : 0 (unlimited)
    Max size           : 0 Mb (unlimited)
    Ratio              : 0:0 (unlimited:unlimited)
    Allowed local  IPs :
    Denied  local  IPs :
    Allowed client IPs :
    Denied  client IPs :
    Time restrictions  : 0000-0000 (unlimited)
    Max sim sessions   : 0 (unlimited)


    Filezilla Example



    with transfer settings set passive mode with Host = your server ip

    Filezilla settings

    Screenshots at Nginx - How to create FTP account for an domain? | Centmin Mod Community

    output for these 2 commands where USERNAME is the pure-ftpd virtual FTP username and /home/nginx/domains/domain1.com where domain1.com is your domain listed
    Code (Text):
    pure-pw list
    pure-pw show USERNAME
    ls -lahgR /home/nginx/domains/domain1.com
    

    example
    Code (Text):
     pure-pw list
    user1               /home/nginx/domains/domain1.com/./                 
    

    Password listed is shown encrypted so not the actual password
    Code (Text):
    pure-pw show user1
    
    Login              : user1
    Password           : $6$Q5lI1poh5aeEIDz0$GfbOwVYB5/sagwRAVo2L21rEb4qME0BKiPRtckJ/m4mdmPqA1kpuCjp2syH56Yvn2/DQy.lH4bVgOpAD6Ff8Y0
    UID                : 1000 (nginx)
    GID                : 1000 (nginx)
    Directory          : /home/nginx/domains/domain1.com/./
    Full name          :
    Download bandwidth : 0 Kb (unlimited)
    Upload   bandwidth : 0 Kb (unlimited)
    Max files          : 0 (unlimited)
    Max size           : 0 Mb (unlimited)
    Ratio              : 0:0 (unlimited:unlimited)
    Allowed local  IPs :
    Denied  local  IPs :
    Allowed client IPs :
    Denied  client IPs :
    Time restrictions  : 0000-0000 (unlimited)
    Max sim sessions   : 0 (unlimited)

    /home/nginx/domains/domain1.com permissions
    Code (Text):
    ls -lahgR /home/nginx/domains/domain1.com
    /home/nginx/domains/domain1.com:
    total 4.0K
    drwxr-s--- 6 nginx   56 May 24 05:14 .
    drwxr-s--- 4 nginx   45 May 24 05:14 ..
    drwxr-s--- 2 nginx    6 May 24 05:14 backup
    drwxr-s--- 2 nginx   39 May 24 05:14 log
    drwxr-s--- 2 nginx    6 May 24 05:14 private
    drwxr-s--- 2 nginx 4.0K May 24 05:14 public
    
    /home/nginx/domains/domain1.com/backup:
    total 0
    drwxr-s--- 2 nginx  6 May 24 05:14 .
    drwxr-s--- 6 nginx 56 May 24 05:14 ..
    
    /home/nginx/domains/domain1.com/log:
    total 0
    drwxr-s--- 2 nginx 39 May 24 05:14 .
    drwxr-s--- 6 nginx 56 May 24 05:14 ..
    -rw-r--r-- 1 nginx  0 May 24 05:14 access.log
    -rw-r--r-- 1 nginx  0 May 24 05:14 error.log
    
    /home/nginx/domains/domain1.com/private:
    total 0
    drwxr-s--- 2 nginx  6 May 24 05:14 .
    drwxr-s--- 6 nginx 56 May 24 05:14 ..
    
    /home/nginx/domains/domain1.com/public:
    total 48K
    drwxr-s--- 2 nginx 4.0K May 24 05:14 .
    drwxr-s--- 6 nginx   56 May 24 05:14 ..
    -rw-r----- 1 nginx 1.6K May 24 05:14 403.html
    -rw-r----- 1 nginx 1.6K May 24 05:14 404.html
    -rw-r----- 1 nginx 2.1K May 24 05:14 500.html
    -rw-r----- 1 nginx 2.1K May 24 05:14 502.html
    -rw-r----- 1 nginx 2.2K May 24 05:14 503.html
    -rw-r----- 1 nginx 7.6K May 24 05:14 503.jpg
    -rw-r----- 1 nginx 2.1K May 24 05:14 504.html
    -rw-r----- 1 nginx 2.2K May 24 05:14 50x.html
    -rw-r----- 1 nginx 1.4K May 24 05:14 index.html
    -rw-r----- 1 nginx 1.7K May 24 05:14 maintenance.html
    

    also check if your ip you connect from has been banned via
    Code (Text):
    csf -g IPADDRESS

    whitelist ip if you haven't already
    Code (Text):
    csf -a IPADDRESS


    also check your pure-ftpd logged messages in /var/log/messages
    Code (Text):
    awk '/pure-ftpd:/' /var/log/messages
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    4:33 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you using 123.09beta01 ? as the correct directory should be /usr/local/src/centminmod/
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    4:33 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    7:33 PM
    @eva2000 Thanks so much for your help I would not know what to do without you <3

    I resolved the problem by reinstalling centos changing the directory and by auto generating ssl password for ftp. I dont know what i've done but is working now and that's thanks to you! (y)
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    4:33 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Great to hear :)

    which directory did you change to and from ?