• proftpd und anonymous login

    From Michael Renner@21:1/5 to All on Sun Aug 1 20:50:01 2021
    Moin,

    2014 knipste ich den ftp-Server aus. Jetzt brauche ich ihn wieder (kurz). Der Proftpd startete, ein Login mit Username und Passwort ist möglich.

    Was ich brauche ist aber der anonymous mode. Konfiguriert ist das (aus der proftpd.conf):

    # A basic anonymous configuration, no upload directories.

    <Anonymous /home/ftp>
    User ftp
    Group nogroup
    # We want clients to be able to login with "anonymous" as well as "ftp"
    UserAlias anonymous ftp
    # Cosmetic changes, all files belongs to ftp user
    DirFakeUser on ftp
    DirFakeGroup on ftp

    RequireValidShell off

    # Limit the maximum number of anonymous logins
    MaxClients 5

    # We want 'welcome.msg' displayed at login, and '.message' displayed
    # in each newly chdired directory.
    DisplayLogin welcome.msg
    DisplayChdir .message

    # Limit WRITE everywhere in the anonymous chroot
    <Directory *>
    <Limit WRITE>
    DenyAll
    </Limit>
    </Directory>

    # Uncomment this if you're brave.
    <Directory /home/ftp/pub/incoming>
    # # Umask 022 is a good standard umask to prevent new files and dirs
    # # (second parm) from being group and world writable.
    Umask 022 022
    <Limit READ WRITE>
    DenyAll
    </Limit>
    <Limit STOR>
    AllowAll
    </Limit>
    </Directory>

    </Anonymous>

    Beim Versuch sich als anonymous einzuloggen wird trotzdem nach einem Passwort gefragt. Das Verzeichnis /home/ftp/ existiert.

    renner@solaris:~$ ftp boulder.mtr
    Connected to boulder.mtr.
    220 ProFTPD Server (ProFTPD) [::ffff:10.8.0.1]
    Name (boulder.mtr:renner): anonymous
    331 Password required for anonymous
    Password: <**** e-mail adresse ****>
    530 Login incorrect.
    Login failed.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ls
    530 Please login with USER and PASS
    ftp: bind: Address already in use

    Die Ausgabe ist halbwegs verwirrend. Nach /var/log/proftpd/ wird auch nichts geschrieben. Installiert ist proftpd-basic 1.3.6-4+deb10u5

    Gibt's eine schneller Idee?
    --
    |Michael Renner E-mail: michael.renner@gmx.de |
    |81541 Munich Twitter: @dd0ul |
    |Germany Don't drink as root! ESC:wq

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Renner@21:1/5 to All on Mon Aug 2 21:30:02 2021
    On Sonntag, 1. August 2021 20:48:58 CEST Michael Renner wrote:
    Moin,

    für's Archiv: Das Modul mod_vroot fehlte. Deswegen zog die schöne Konfiguration gar nicht. Ein "apt install" brachte das in Ordnung.

    CU
    --
    |Michael Renner E-mail: michael.renner@gmx.de |
    |81541 Munich Twitter: @dd0ul |
    |Germany Don't drink as root! ESC:wq

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)