Welcome to Centmin Mod Community
Become a Member

Beta Branch Centmin Mod .08 beta + pure-ftpd virtual FTP user support

Discussion in 'Beta release code' started by eva2000, Jan 19, 2015.

  1. noly

    noly Premium Member Premium Member

    95
    14
    8
    Jul 24, 2017
    Germany
    Ratings:
    +26
    Local Time:
    2:23 PM
    1.13.x
    10.x
    Edit: I am facing "authentication failed" again.

    Debugging right now..

    I have a guess though.

    Pw: a3s?i27$zU!{jPmx+ --> don't like

    Pw: meeauwhwuff --> like

    Are special chars in the pw not allowed?
     
  2. noly

    noly Premium Member Premium Member

    95
    14
    8
    Jul 24, 2017
    Germany
    Ratings:
    +26
    Local Time:
    2:23 PM
    1.13.x
    10.x
    Nope...special chars aren't the issue. Now it's running again. I have no clue what it is. Can't figure out a constanze.
     
  3. eva2000

    eva2000 Administrator Staff Member

    42,077
    9,497
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,613
    Local Time:
    11:23 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    /etc/ftpusers shouldn't be needed
    listing instances referencing the path
    Code (Text):
    grep -C3 -rn '\/etc\/ftpusers' /etc
    

    output
    Code (Text):
    grep -C3 -rn '\/etc\/ftpusers' /etc
    /etc/pure-ftpd/pure-ftpd.conf-241-
    /etc/pure-ftpd/pure-ftpd.conf-242-
    /etc/pure-ftpd/pure-ftpd.conf-243-
    /etc/pure-ftpd/pure-ftpd.conf:244:# Do not use the /etc/ftpusers file to disable accounts. We're already
    /etc/pure-ftpd/pure-ftpd.conf-245-# using MinUID to block users with uid < 1000
    /etc/pure-ftpd/pure-ftpd.conf-246-
    /etc/pure-ftpd/pure-ftpd.conf-247-UseFtpUsers no
    --
    /etc/pam.d/pure-ftpd-3-# Sample PAM configuration file for Pure-FTPd.
    /etc/pam.d/pure-ftpd-4-# Install it in /etc/pam.d/pure-ftpd or add to /etc/pam.conf
    /etc/pam.d/pure-ftpd-5-
    /etc/pam.d/pure-ftpd:6:auth       required     pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
    /etc/pam.d/pure-ftpd-7-auth       include      password-auth
    /etc/pam.d/pure-ftpd-8-auth       required     pam_shells.so
    /etc/pam.d/pure-ftpd-9-auth       required     pam_nologin.so
    

    it's working now ?
     
  4. eva2000

    eva2000 Administrator Staff Member

    42,077
    9,497
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,613
    Local Time:
    11:23 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    are you setting setup-callupload.sh ? remove it as it can break pure-ftpd these days
     
  5. noly

    noly Premium Member Premium Member

    95
    14
    8
    Jul 24, 2017
    Germany
    Ratings:
    +26
    Local Time:
    2:23 PM
    1.13.x
    10.x
    I was repeating the absolutely exact(!) same thing and sometimes i got the authentication error and sometimes not...that's why i thought it may be the special chars in the pw. But now it works. Now that it is working i won't touch it. Guess i'll just have centmin menu #2 take care of it in the future.

    I removed the pureftp via custom_config because i don't need a ftp user for each vhost i create and the procedure actually forces you to put in a username and pw when pureftp is enabled. Wouldn't it make maybe sense to make it an option?
    'Add FTP user? y/n'
     
  6. eva2000

    eva2000 Administrator Staff Member

    42,077
    9,497
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,613
    Local Time:
    11:23 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    When you disable pure-ftpd via the option, it stops pure-ftpd service altogether so you won't be able to add virtual ftp users at all. Which is probably what you experienced.

    It's equivalent of stopping nginx service and expecting newly added nginx vhost sites to work. They won't :)
     
    • Informative Informative x 1
  7. Itworx4me

    Itworx4me Premium Member Premium Member

    196
    21
    18
    Mar 14, 2017
    Ratings:
    +34
    Local Time:
    5:23 AM
    Nginx 1.17.X
    MariaDB 10.3.X
  8. eva2000

    eva2000 Administrator Staff Member

    42,077
    9,497
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,613
    Local Time:
    11:23 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yeah will need to delete pureftp virtual ftp user = y and re-add proper username
     
    • Like Like x 1