[Bug?] FTP "Permit root login" does not work as expected (needs manual fix)

    • OMV 2.x
    • [Bug?] FTP "Permit root login" does not work as expected (needs manual fix)

      Hello,

      I tried to enable the login for the user "root" in the FTP options.

      (Services -> FTP -> Settings -> Advanced settings -> "Permit root login")

      This adds the user root in the vhosts sections in /etc/proftpd/proftpd.conf

      Source Code

      1. <Limit ALL>
      2. AllowUser OR root
      3. AllowGroup OR root
      4. DenyAll


      Unfortunately proftpd still blocks the root user from login to the FTP server (using FileZilla)

      Source Code

      1. Status: Verbinde mit 192.168.2.200:21...
      2. Status: Verbindung hergestellt, warte auf Willkommensnachricht...
      3. Status: Unsicherer Server; er unterstützt kein FTP über TLS.
      4. Befehl: USER root
      5. Antwort: 331 Password required for root
      6. Befehl: PASS *********
      7. Antwort: 530 Login incorrect.
      8. Fehler: Kritischer Fehler: Herstellen der Verbindung zum Server fehlgeschlagen


      The /var/log/proftpd/proftpd.log log file:

      Source Code

      1. openmediavault proftpd: pam_listfile(proftpd:auth): Refused user root for service proftpd


      Solution:
      The file /etc/ftpusers still contains the root user:

      Source Code

      1. # /etc/ftpusers: list of users disallowed FTP access. See ftpusers(5).
      2. root
      3. daemon
      4. bin
      5. sys
      6. sync
      7. games
      8. man
      9. lp
      10. mail
      11. news
      12. uucp
      13. nobody
      Display All



      -> comment out the line containing "root" and the login for root is working.
      => This should be done automatically if the "Permit root login" switch is enabled

      Best regards,
      Patrick