Titel: Proftp auf Debian 3.1 Beitrag von: James28 am 26. November 2006, 17:32:06 Hallo ???
Ich nutze Debian 3.1 und habe den proftp installiert nur leider klappt das nicht so. ich möchte das jeder in seinem Homeverzeichniss bleibt. Ich habe ein Script dazu was Benutzer und Gruppe und Ordner usw anlegt. Nachdem ich das Script ausgeführt habe ist im Ordner Home der Ordner ftp dazugekommen wo die Benutzer homeverzeichnisse drinnen sindwenn ich im browser die IP vom FTP angebe bekomme ich ein Anmeldefenster wo ich name und kennwort angeben kann nbur gehe ich da den angelegten benutzer an kann er sich nicht anmelden. Weis jemand rat. Hier meine proftpd.conf ############################################################################################# # # /etc/proftpd.conf -- This is a basic ProFTPD configuration file. # To really apply changes reload proftpd after modifications. # ServerName "Debian" ServerType inetd DeferWelcome off ServerIdent on "WIllkommen auf meinem Server" MultilineRFC2228 on DefaultServer on ShowSymlinks on TimeoutNoTransfer 600 TimeoutStalled 600 TimeoutIdle 1200 DisplayLogin welcome.msg DisplayFirstChdir .message ListOptions "-l" DenyFilter \*.*/ #DefaultRoot ~ #RootLogin off # Uncomment this if you are using NIS or LDAP to retrieve passwords: #PersistentPasswd off # Uncomment this if you would use TLS module: #TLSEngine on # Uncomment this if you would use quota module: #Quotas on # Uncomment this if you would use ratio module: #Ratios on # Port 21 is the standard FTP port. Port 21 # To prevent DoS attacks, set the maximum number of child processes # to 30. If you need to allow more than 30 concurrent connections # at once, simply increase this value. Note that this ONLY works # in standalone mode, in inetd mode you should use an inetd server # that allows you to limit maximum number of processes per service # (such as xinetd) MaxInstances 30 # Set the user and group that the server normally runs at. User nobody Group nogroup # Umask 022 is a good standard umask to prevent new files and dirs # (second parm) from being group and world writable. Umask 022 022 # Normally, we want files to be overwriteable. AllowOverwrite on # Delay engine reduces impact of the so-called Timing Attack described in # http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02 # It is on by default. #DelayEngine off # A basic anonymous configuration, no upload directories. # <Anonymous ~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 10 # # # We want 'welcome.msg' displayed at login, and '.message' displayed # # in each newly chdired directory. # DisplayLogin welcome.msg # DisplayFirstChdir .message # # # Limit WRITE everywhere in the anonymous chroot # <Directory *> # <Limit WRITE> # DenyAll # </Limit> # </Directory> # # # Uncomment this if you're brave. # # <Directory 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> <VirtualHost 192.168.1.3> Port 21 ServerName "pogress.homelinux.com" </VirtualHost> <Global> RootLogin off RequireValidShell off DefaultRoot ~ #DefaultRoot ~ ftpweb DefaultChdir /home/ftp/ </Global> Titel: Re: Proftp auf Debian 3.1 Beitrag von: VolGas am 28. November 2006, 15:07:02 Hallo!
Zunächst wirkt Deine proftpd.conf sehr "ordentlich" und brauchbar. Allerdings am Ende wird's "mistig". Entferne einmal die Zeilen: "<VirtualHost 192.168.1.3>" und "</VirtualHost>" Das könnte schon reichen. Außerdem könnte es von Vorteil sein, den ProFTPD nicht unter dem inetd, sondern als "standalone" laufen zu lassen. Hast Du Dir schon einmal die ->Support-Seiten (http://www.proftpd.de/Support.13.0.html) und die ->FAQ (http://www.proftpd.de/FAQ.15.0.html) von Stonki's Website angesehen? Eine gut funktionierende proftpd.conf, die die wichtigsten und meist benötigten Anforderungen abdeckt, kann man bei den ->Beispiel Konfigurationen (http://www.proftpd.de/Beispiel-Konfigurationen.25.0.html) finden: die ->proftpd.conf Standard Deluxe (http://www.proftpd.de/uploads/media/proftpd.conf)... mfg. VolGas Titel: Re: Proftp auf Debian 3.1 Beitrag von: James28 am 01. Dezember 2006, 07:28:40 Hi,
danke für deine Hilfe mein FTP server läuft nun. Aber eine frage hab ich dennoch Weist auch auch wie ich ddas ganze unter Suse Linux 10.1 zum laufen bekomme da ich das bei einem Anderen Pc auch machen sol.l Wenn ich den unter webmin starten möchte bekomme ich diese Meldung: Konnte ProFTPd-Server nicht starten : sh: /etc/init.d/proftpd: No such file or directory Weist du was da zutun ist oder was z.B. in der /etc/Init.d/proftpd datei drinnen stehen muss damit er läuft. Gruß James Titel: Re: Proftp auf Debian 3.1 Beitrag von: VolGas am 01. Dezember 2006, 11:28:40 Schön, daß es nun funktioniert.
Auf einer anderen Maschine wäre die proftpd.conf prinzipiell die selbe, nur IP-Adressen wären anzupassen. Wie und wo so ein Start-/Stopscript unter SUSE anzulegen ist, weiß ich nicht, aber auf Stonki's Website ist eines im Download-Bereich bei den ->Tools (http://www.proftpd.de/Tools.53.0.html) zu finden... Webmin ist ein klasse Tool, aber ich kann Dir nur empfehlen, sehr vorsichtig damit zu sein - gerade bei Konfigurationsdateien. Die Konsole (bzw. SSH) kann es letztendlich nicht ersetzen. Viel Spaß und Erfolg! mfg. VolGas |