Page 1 of 1

proFTP Installation mit APT-Get

Posted: 2005-09-27 20:24
by bwar
Hallo!

Ich habe Confixx über Bord geworfen und will jetzt einen FTP-Server isntallieren. Leider geht das mehr schlecht als recht.

Mein Root hat Debian 3.1

Ich habe es mit apt-get versucht und konnte proFTP installieren. Aber wenn ich den Server starten will, kommt nur die fehlermeldung:

server:~# /etc/init.d/proftpd start
ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration.



Was mache ich falsch? Gibt es auch andere FTP-Server?

Die Config:
#
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

ServerName "Debian"
ServerType inetd
DeferWelcome off

MultilineRFC2228 on
DefaultServer on
ShowSymlinks on

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"

DenyFilter *.*/

# 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?pag...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>

Re: proFTP Installation mit APT-Get

Posted: 2005-09-27 22:55
by cat
hiho,
bwar wrote:Hallo!

Ich habe Confixx über Bord geworfen und will jetzt einen FTP-Server isntallieren. Leider geht das mehr schlecht als recht.
confixx installiert Software? SCNR
Mein Root hat Debian 3.1

Ich habe es mit apt-get versucht und konnte proFTP installieren.
nimm demnaechst aptitude, apt-get wird nicht mehr gepflegt, und durch aptitude abgeloest, das verhindert in der Zukunft Probleme mit Dependencies (nur eine Randbemerkung, hat nichts mit dem Problem zu tun)
Aber wenn ich den Server starten will, kommt nur die fehlermeldung:

server:~# /etc/init.d/proftpd start
ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration.

Was mache ich falsch? Gibt es auch andere FTP-Server?
jede menge...

stell mal den ServerType auf standalone um ;)
ich denke, das dsa Problem bei Dir eher in der inetd config liegt als in der proftpd.conf ausserdem empfinde ich persoenliche ein standalone Server fuer sicherer

Gruesse
Cat

Re: proFTP Installation mit APT-Get

Posted: 2005-09-28 06:48
by captaincrunch
ausserdem empfinde ich persoenliche ein standalone Server fuer sicherer
Steckt da weibliche Intuition dahinter, oder gibt's da Gründe für?

Re: proFTP Installation mit APT-Get

Posted: 2005-09-28 08:39
by cat
hiho CC,

wenn ich gruende wuesste, haette ich die sicher genannt .. und Intuition, naja, ich hab ja schon gesagt
empfinde ich als ...
;)

Gruesse
Cat

Re: proFTP Installation mit APT-Get

Posted: 2005-09-28 10:41
by flo
Sorry - aber ein FTP-Server muß nicht ständig im Speicher hängen, von Zugriffskontrollen usw. mal ganz abgesehen.

Aber vom Starten über den inetd halte ich auch nicht viel - dafür gibt es xinetd ;-)

flo.

Re: proFTP Installation mit APT-Get

Posted: 2005-09-28 13:35
by lord_pinhead
Bleibt weiterhin sein Problem :) Schau mal auf Debianhowto.de dort wird die Grundstruktur erklärt. Du musst ausserdem nach der installation den Eintrag in der /etc/inetd.conf ändern:

Aus

Code: Select all

#<off># ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/proftpd
wird

Code: Select all

ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/proftpd
Und schon sollte der Start klappen. Wie du alles zu konfigurieren hast, ist nen anderes Thema was bei Proftpd fast unendlich sein kann :) Aso, flo hat im übrigen recht mit inet.d, du solltest wirklich über den xinet.d nachdenken.

@flo
In Zeiten wo 1 GB Ram in den Server steckt und eine Heizplatte (Intel P4) als CPU, mach ich mir wenig sorgen um die Ressourcen. Proftp wäre der einzige Eintrag den ich drin hätte, daher denke ich nicht das es sich rechnet wenn ich den über den xinet laufen lasse.

Re: proFTP Installation mit APT-Get

Posted: 2005-09-28 14:11
by cat
oder den servertype auf standalone setzen ;) (wie gestern geschrieben ;) )

Gruesse
Cat

Re: proFTP Installation mit APT-Get

Posted: 2005-09-28 14:14
by flo
Lord_Pinhead wrote:@flo
In Zeiten wo 1 GB Ram in den Server steckt und eine Heizplatte (Intel P4) als CPU, mach ich mir wenig sorgen um die Ressourcen. Proftp wäre der einzige Eintrag den ich drin hätte, daher denke ich nicht das es sich rechnet wenn ich den über den xinet laufen lasse.
Ich gebs ja zu ... ja, ja, ja ... hab mal nachgeschaut und festgestellt, daß ich nur noch P4s, Xeons und noch einen Sempron habe, der wohl auch locker ausreicht. Gut, die Performance ist durch einen rumdümpelnden FTPd nciht unbedingt hart an der Grenze.

Spaß beiseite - der Start über den Xinetd bring halt noch ein paar Möglichkeiten, um den FTPd noch etwas feinzutunen. Sicher ist das auch Geschmackssache, aber wenigstens habe ich Argumente, außer daß es egal ist. SCNR ;-)

flo.

Re: proFTP Installation mit APT-Get

Posted: 2005-09-28 15:57
by lord_pinhead
flo wrote: Spaß beiseite - der Start über den Xinetd bring halt noch ein paar Möglichkeiten, um den FTPd noch etwas feinzutunen. Sicher ist das auch Geschmackssache, aber wenigstens habe ich Argumente, außer daß es egal ist. SCNR ;-)
flo.
Wenn ich einen sehr frequentierten Server habe, auf dem z.b. eine Newsseite läuft bei der immer irgendwie jemand auf dem FTP rumgurkt, dann würde der (x)inetd eher mehr Speicher belasten als wenn ich den FTPd einfach nur Standalone laufen lasse :)

Is das nen Argument? Ich denke ja :)

Btw.: Jetzt mal kein kleinkrieg von wegen Standalone oder Inetd, gibt für beides Vor und auch Nachteile.

Re: proFTP Installation mit APT-Get

Posted: 2005-09-28 16:40
by flo
Lord_Pinhead wrote:Btw.: Jetzt mal kein kleinkrieg von wegen Standalone oder Inetd, gibt für beides Vor und auch Nachteile.
;-)

Stimmt - aber hängt nicht jede Konfiguration von den Gegebenheiten ab?

;-)

Für mich dann EOD - das Thema scheint ja philosophisch zu sein.

flo.

Re: proFTP Installation mit APT-Get

Posted: 2005-09-28 21:55
by lord_pinhead
flo wrote:
Lord_Pinhead wrote:Btw.: Jetzt mal kein kleinkrieg von wegen Standalone oder Inetd, gibt für beides Vor und auch Nachteile.
;-)

Stimmt - aber hängt nicht jede Konfiguration von den Gegebenheiten ab?

;-)

Für mich dann EOD - das Thema scheint ja philosophisch zu sein.

flo.
ACK