Join the community today
Register Now

[Solved] Alma8 & Rocky8 - FTP

Discussion in 'AlmaLinux 8 & Rocky Linux 8 Beta Testing' started by Colin, Oct 31, 2022.

  1. Colin

    Colin Premium Member Premium Member

    192
    59
    28
    Oct 7, 2015
    Sheffield UK
    Ratings:
    +154
    Local Time:
    10:16 PM
    1.19.#
    MariaDB 10.1.#
    Doing a series of install tests, all seems to be going well. Letsencrypt, configs, silky smooth as ever.

    Tried connecting to the ftp, could not auth. Tried this on three clean installs; 1 on alma, 2 on rocky, thinking maybe I missed something. Reset the user passwords to a simple password & ran mkdb ;) same outcome. Using same settings as I would on a centos7 1.24 install.

    Each auth failed. The logs showed the failed auth attempts, lfd tagged it to ignore.

    I can work around it with scp, however it's most perculiar and the only quirk I found on my initial tests this am, so I figured I'd mention it, just in case...

    I've killed the VM's now, I'll take another run at it later & capture logs.


    I'm going to take a guess that no one else has had this problem?
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,158
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    7:16 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Cheers thanks for the report. Will have to look into it. Maybe some type of SSL cipher issue with EL8? What FTP client are you using? FTP client trace/logs have any clues?
     
  3. Colin

    Colin Premium Member Premium Member

    192
    59
    28
    Oct 7, 2015
    Sheffield UK
    Ratings:
    +154
    Local Time:
    10:16 PM
    1.19.#
    MariaDB 10.1.#
    Can gather some forensics later. Transmit on M1. It connects to my old c7 install just fine. Using the same settings, alter to point to new el8 ip and creds...

    The auth is defintely happening, so not blocked or restricted. Just fails. I know thats not much use at this point. Done more as a marker so I don't forget later.
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,158
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    7:16 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @Colin you managed to find your first EL8 bug :D

    pure-ftpd config file at /etc/pure-ftpd/pure-ftpd.conf on EL8 has some different paths to virtual FTP user database for PureDB paths so 130.00beta01 initial setup missed the changes. So the proper pure-ftpd virtual FTP user database path was not setup correctly.

    If you run these commands manually, it should correct the issue
    Code (Text):
    sed -i 's/# PureDB                       \@sysconfigdir\@\/pureftpd.pdb/PureDB                        \/etc\/pure-ftpd\/pureftpd.pdb/' /etc/pure-ftpd/pure-ftpd.conf
    systemctl restart pure-ftpd
    

    On EL8, pure-ftpd.conf PureDB path is meant to change from
    Code (Text):
    # PureDB                       @sysconfigdir@/pureftpd.pdb

    to
    Code (Text):
    PureDB                        /etc/pure-ftpd/pureftpd.pdb
     
  5. Colin

    Colin Premium Member Premium Member

    192
    59
    28
    Oct 7, 2015
    Sheffield UK
    Ratings:
    +154
    Local Time:
    10:16 PM
    1.19.#
    MariaDB 10.1.#
    Oh super! So I wasn’t going mad. I’ve had one of those weeks!

    Thanks for the prompt investigation and rectification steps.

    will take another install for a spin later :)
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,158
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    7:16 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FYI, just updated 130.00beta01 with the fix too :D