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 Member

    106
    16
    18
    Jul 24, 2017
    Germany
    Ratings:
    +28
    Local Time:
    1:07 AM
    1.18.x
    10.2.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 Member

    106
    16
    18
    Jul 24, 2017
    Germany
    Ratings:
    +28
    Local Time:
    1:07 AM
    1.18.x
    10.2.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

    54,527
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    10:07 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    /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

    54,527
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    10:07 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    are you setting setup-callupload.sh ? remove it as it can break pure-ftpd these days
     
  5. noly

    noly Member

    106
    16
    18
    Jul 24, 2017
    Germany
    Ratings:
    +28
    Local Time:
    1:07 AM
    1.18.x
    10.2.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

    54,527
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    10:07 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 :)
     
  7. Itworx4me

    Itworx4me Active Member

    303
    28
    28
    Mar 14, 2017
    Ratings:
    +50
    Local Time:
    4:07 PM
    Nginx 1.25.X
    MariaDB 10.6.X
  8. eva2000

    eva2000 Administrator Staff Member

    54,527
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    10:07 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah will need to delete pureftp virtual ftp user = y and re-add proper username