Welcome to Centmin Mod Community
Become a Member

FTP Passwords - Where do I find those passwords that Centmin Mod auto-generated during

Discussion in 'Install & Upgrades or Pre-Install Questions' started by VIP_Hawaii, Nov 23, 2019.

  1. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    2:58 AM
    1.11.3
    10.1.13 (?)
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 6 32bit or 64bit / CentOS 7 64bit ?
    • Centmin Mod Version Installed: i.e. 123.08stable or 123.09beta01
    • Nginx Version Installed: i.e. 1.15.3
    • PHP Version Installed: i.e. 5.6.37, 7.0.31, 7.1.21, 7.2.9
    • MariaDB MySQL Version Installed: i.e. 10.0.x or 10.1.xx or 10.2.xx
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 23 submenu option 2 or cmupdate command
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      cat /etc/centminmod/custom_config.inc
      

      Post output in CODE tags.

     
  2. eva2000

    eva2000 Administrator Staff Member

    44,713
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,796
    Local Time:
    9:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    They'd be in your nvhost logs in /root/centminlogs directory

    you can list then in ascending order by date created
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep addvhost


    or see official Centmin Mod Pure-ftpd page for how to change the existing Pure-ftpd virtual FTP username's password at https://centminmod.com/ftp.html
     
  3. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    2:58 AM
    1.11.3
    10.1.13 (?)
     
  4. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    2:58 AM
    1.11.3
    10.1.13 (?)
    Code (Text):
    [14:12][root@ns543594 centminlogs]# cat /etc/centminmod/custom_config.inc         cat: /etc/centminmod/custom_config.inc: No such file or directory                 You have new mail in /var/spool/mail/root
    [14:13][root@ns543594 centminlogs]#
    
     
    Last edited: Nov 24, 2019
  5. eva2000

    eva2000 Administrator Staff Member

    44,713
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,796
    Local Time:
    9:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  6. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    2:58 AM
    1.11.3
    10.1.13 (?)
    Code (Text):
    ocal/src/centminmod ~
    [19:26][root@ns543594 centminmod]# cat /etc/centminmod/custom_config.inc
    cat: /etc/centminmod/custom_config.inc: No such file or directory
    [19:26][root@ns543594 centminmod]#
    
     
  7. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    2:58 AM
    1.11.3
    10.1.13 (?)
  8. eva2000

    eva2000 Administrator Staff Member

    44,713
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,796
    Local Time:
    9:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    you won't have custom_config.inc file unless you created it for persistent config options

    as to your pure-ftpd login details, they would be in your *-nginx_addvhost.log logs in /root/centminlogs
     
  9. eva2000

    eva2000 Administrator Staff Member

    44,713
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,796
    Local Time:
    9:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    then just inspect contents of the logs and/or download them to your local PC and inspect them there for the login details.
     
  10. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    2:58 AM
    1.11.3
    10.1.13 (?)
    The problem is that I do not understand your file naming structure for the correct log files, so could you please take a minute to look at the HUGE list of log files in /centminlogs which I just posted in this thread and simply cut and paste the file names of the two log files containing the FTP passwords for my two nvhost domains :
    churchofparadise.net, & churchofparadise.online
    and place them between {CODEB} tags for me?
     
  11. eva2000

    eva2000 Administrator Staff Member

    44,713
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,796
    Local Time:
    9:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    they'd be in logs ending in _nginx_addvhost.log where their date timestamp would be matching the corresponding logs ending in 21xxxxx-06xxxx_nginx_addvhost-remove-cmds-yourdomain.com.log where datetime stamp example is 211119-062829 is one of them
     
  12. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    2:58 AM
    1.11.3
    10.1.13 (?)
    George, you are a tech saint. This explanation is exactly what I was looking for.

    ¡¡¡ SOLVED !!!
    :happy::happy::happy::happy::happy::happy:

    Thanks again, George.
    The value of your work is beyond money (although I do intend to upgrade my Centminmod Community Forum members to a Paid Premium Membership. A real super bargain !!!)

    All the best,

    Dane Eric; Gross
    Webmaster, Real Media Networks (RMN)​
     
  13. eva2000

    eva2000 Administrator Staff Member

    44,713
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,796
    Local Time:
    9:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    You're welcome you may want to remove the log output displaying your domain names for privacy if you want too
     
  14. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    2:58 AM
    1.11.3
    10.1.13 (?)
    Thumbs up but I can't seem to edit the post so would you please (in forumadmin mode), remove that code for me?
     
  15. eva2000

    eva2000 Administrator Staff Member

    44,713
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,796
    Local Time:
    9:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Done :)
     
  16. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    2:58 AM
    1.11.3
    10.1.13 (?)
    This is kind of funny : I checked the logs and found out that when the script had asked me "y/n" on auto-creating an FTP password, I blindly typed " j " instead of "y", so, it appears it just did not create a password? ..

    Now how can I have it auto-generate a password as though it was just being created or how can I now manually create an ftp password for the domain without first manually deleting the domain vhost data and starting all over ?
     
    Last edited: Dec 9, 2019
  17. eva2000

    eva2000 Administrator Staff Member

    44,713
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,796
    Local Time:
    9:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    if you didn't answer 'y' to auto generate Pure-ftpd virtual FTP password on centmin.sh menu option 22 wordpress auto installer, then next would be a prompt to enter your own desired password so just look further in the same log for the prompt which be something like
    Code (Text):
    Create FTP password for YOURFTPUSERNAME (enter password): 
    

    My reply in 2nd post in this thread links to how you can change that existing Pure-ftpd virtual FTP username's password
     
  18. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    2:58 AM
    1.11.3
    10.1.13 (?)
    OK, but upon checking this, was able to simply do a
    Code (Text):
    pure-pw show ftp
    and I then had the FTP password ( it must be an auto-generated one, because it is really secure! ), then tried to do an SFTP login with ftp as the {correct}
    username, with that password output, and ( not surprisingly ) got a key mismatch error, as I have no key here locally.

    Where/how can I download this key, so I can get started uploading WWW content to my Nginx public directory? I know the vhost tool creates a certificate pair upon vhost creation, but how do I download my local key?
     
    Last edited: Dec 9, 2019
  19. eva2000

    eva2000 Administrator Staff Member

    44,713
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,796
    Local Time:
    9:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    that shows a hash of your password not the actual password - you can't use the password hash as password

    there is no local key that allows you to use FTP, you have to use Pure-ftpd generated virtual FTP username/password.
     
  20. VIP_Hawaii

    VIP_Hawaii Member

    56
    11
    8
    May 6, 2016
    Ratings:
    +12
    Local Time:
    2:58 AM
    1.11.3
    10.1.13 (?)
    So far I have done everything you've said, yet I still cannot figure out where or what my ftp password is. It is not in the log file. Here is the output of :

    vi centminmod_123.09beta01.b326_211119-033324_nginx_addvhost.log
    :
    Code (Text):
                             
    ^[[1;33;40m---------------------------------------------                       
    ^[(B^[[m                                                                       
    ^[[1;33;40m---------------------------------------------------------------     
    ^[(B^[[m^[[1;32;40mImportant Information                                       
    ^[(B^[[m^[[1;33;40m---------------------------------------------------------------
    ^[(B^[[m                                                                       
    You are about to create an Nginx vhost site account with/without               
    HTTPS/SSL support. Details of this process are outlined on site                 
    at centminmod.com/nginx_domain_dns_setup.html. Also read the                   
    continually updated Getting Started Guide for Centmin Mod usage                 
    at centminmod.com/getstarted.html which covers the pure-ftpd                   
    ftp username that is auto generated with the Nginx vhost site.                 
    ^[[1;33;40m---------------------------------------------------------------     
    ^[(B^[[m403 Permission denied message handling                                 
    if after vhost site setup you encounter 403 permission denied errors,           
    check https://community.centminmod.com/threads/7308/ to see if your             
    site needs tools/autoprotect.sh tweaking/whitelisting                           
    ^[[1;33;40m---------------------------------------------------------------     
    ^[(B^[[m[ LETSENCRYPT_DETECT is not enabled ]                                   
    Ignore this message if you do not want HTTPS based web site otherwise           
    read below carefully.                                                           
                                                                                   
    Free letsencrypt SSL certificates integration is in beta testing if             
    you want to obtain free letsencrypt SSL certificate for HTTPS site,             
    you will need to manually enable LETSENCRYPT_DETECT='y' outlined               
    at https://centminmod.com/acmetool so exit this vhost routine first             
    set LETSENCRYPT_DETECT='y' and update domain DNS A record first                 
    then re-run vhost site creation menu option                                     
    ^[[1;33;40m---------------------------------------------------------------     
    ^[(B^[[m                                                                       
    Do you want to continue with Nginx vhost site creati^Mion ? [y/n] y             
                                                                                   
    Enter vhost domain name to add (without www. prefix)^M): thc-kib8^H^[[Klll^H^[[K^H
    ^[[K^H^[[K^H^[[K^H^[[K^H^[[Kministre^H^[[Kt.org                                 
                                                                                   
    Create a self-signed SSL certificate Nginx vhost? [y^My/n]: ^Gn                 
                                                                                   
    Create FTP username for vhost domain (enter username^Me): b                     
    Auto generate FTP password (recommended) [y/n]: j                               
    Create FTP password for b (enter password): n                                   
    !! password strength not strong enough !!                                       
    !! do not use common dictionary words !!                                       
    !! do not use short passwords !!                                               
    !! do not use simplistic passwords !!                                           
                                                                                   
    re-enter FTP password for b (enter password): j                                 
    !! password strength not strong enough !!                                       
    !! do not use common dictionary words !!                                       
    !! do not use short passwords !!                                               
    !! do not use simplistic passwords !!                                           
                                                                                   
    re-enter FTP password for b (enter password): vmj                               
    !! password strength not strong enough !!                                       
    !! do not use common dictionary words !!                                       
    !! do not use short passwords !!                                               
    !! do not use simplistic passwords !!                                           
                                                                                   
    re-enter FTP password for b (enter password): b                                 
    !! password strength not strong enough !!                                       
    !! do not use common dictionary words !!                                       
    !! do not use short passwords !!                                               
    !! do not use simplistic passwords !!
    


    I guess I typed a j instead of a y, then an n for not creating my own FTP password.
    I guess the only solution here now is to follow the instructions in the

    centminmod_123.09beta01.b326_211119-033324_nginx_addvhost-remove-cmds-churchofparadise.net.log

    file for removing the vhost manually, then I should use centmin.sh option 2 to re-create the vhost?
    Hopefully this time there will be a cut-and-pastable FTP password in the new log file it creates.

    UPDATE :
    I deleted the ftp user and other vhost stuff, then Properly re-created the vhost. Sure enough, the centmin.sh script set created the user and a plain-text password which I copied. Cut and pasted all into FTPCafe (my Android FTP client) and set it to use SFTP, I then used vi to view, select, copy and paste a copy of churchofparadise.crt, .csr and .key, directed FTPCafe to use those credentials ... And instead of happily connecting as expected, instead I am getting a Socket Error.

    ezscreenshot-1575937643311.jpg
     
    Last edited: Dec 10, 2019