PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Proftpd bleibt beim Ausführen von ls hängen



Firew
03.01.02, 09:20
Hallo

Ich versuche mich gerade an der Konfiguration von Proftpd. Wenn ich mich mit einem Client verbinde, und das ls Kommando ausführe, passiert gar nix mehr. Es kommt noch die Zeile
200 PORT command successful
aber passieren tut nix. Nach einer Zeit wird die Verbindung dann vom Remothost getrennt.

Hier ist meine proftpd.conf.

This is the ProFTPD configuration file

ServerName "GROMO-Server"
ServerIdent on "FTP Server ready."
ServerAdmin marcus.woeltje@gmx.de
#ServerType standalone
ServerType inetd
DefaultServer on
AccessGrantMsg "Benutzer %u ist eingeloggt."
DisplayConnect /etc/ftpissue
DisplayLogin /etc/ftpmotd
DisplayGoAway /etc/ftpgoaway

# Use pam to authenticate by default
AuthPAMAuthoritative on

# Do not perform ident lookups (hangs when the port is filtered)
IdentLookups off

# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new dirs and files from being group and world writable.
umask 022

# Chmod isn't allowed by default
AllowChmod off

# Default to show dot files in directory listings
LsDefaultOptions "-l"

# See Configuration.html for these (here are the default values)
#MultilineRFC2228 off
RootLogin off
#LoginPasswordPrompt on
MaxLoginAttempts 3
MaxClientsPerHost 1

MaxInstances 30

# Set the user and group that the server normally runs at.
User ftp
Group ftp

# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite on
</Directory>



Wenn ihr hier drin einen Fehler findet, dann nur raus mit der Sprache. :)

Gruß
Marcus

mustafaB
03.01.02, 13:29
Ciao du!



Hast du es auch OHNE:
LsDefaultOptions "-l"

in deine proftpd.conf versucht?

ich hab so ca die gleiche config datei wie du.. und dem geht...
halt nur kein LsDefaultOptions "-l"

drin.

gruss
Mustafa

Firew
03.01.02, 15:10
Hmm.

Hi.

Ich habe die Option mal ganz rausgenommen und mal mit "-a" ausprobiert, aber das half auch nix. Ich habe es sogar jetzt mal mit einer ganz neuen Konfig ausprobiert. Klappt auch nicht!

Kann es sein, dass meine Berechtigungen der angelegten Verzeichnisse nicht stimmen? Aber sie sind alle auf 755.

Eine weitere Idee ist mir gerade noch gekommen. Und zwar kann es eventuell mit Gruppenzugehörigkeiten zu tun haben?
Jeder User wird doch als ftp gemappt, wer muss den nun der Eigentümer der pub etc. Verzeichnisse sein? root? ftp? Oder ist das egal wer?

Marcus

Firew
03.01.02, 15:57
Okay!

Habe das Problem gefunden!
Und zwar habe ich mit iptables den ftp-data Port blockiert. Nun habe ich das an hand folgender Regel geändert und es klappt auch! *schööön* :D

iptables -A INPUT -m state --state NEW,ESTABLISHED -j ACCEPT


Marcus