Urkommunist
11.04.04, 10:49
HI, ich bin nach der Anleitung von O'Reilly (Sichere Server für Linux) vorgegangen. Hab auch nochmal alles überprüft aber ich finde den Fehler einfach nicht
Dies ist meine proftpd.conf
# This is the ProFTPD configuration file
#
#Basiseinstellungen
ServerType standalone
MaxInstances 30
TimeoutIdle 300
TimeoutNoTransfer 300
TimeoutStalled 300
UseReverseDNS no
LogFormat uploadz "%t %u\@?*1 \"%r\" %s %b bytes"
SyslogFacility LOCAL5
#Einstellungen fuer den Basisserver die auch fuer
#den virtuellen server definiert werden koenen
ServerName "FTP at dns.lan.de"
Port 21
<Limit Login>
DenyAll
</Limit>
#Globale Einstellungen: fuer den basis Server UND den virtuellen
<Global>
ServerIdent off
AllowRetrieveRestart on
MaxClients 20 "System ist ausgelastet (maximal %m Nutzer)."
MaxClientsPerHost 3 "Ihr system ist bereits mehrmals verbunden."
Umask 022
User nobody
Group nobody
</Global>
#Konfiguration fuer Anonymous FTP, das hochladen von dateien ist im verzeichnis
#incoming erlaubt
<Anonymous /home/ftp>
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 30
DisplayLogin welcome.msg
ExtendedLog /var/log/ftp_uploads WRITE uploadz
<Limit LOGIN>
AllowAll
</Limit>
<Limit WRITE>
DenyAll
<Directory /home/ftp/incoming/*>
<Limit READ DIRS CWD>
DenyAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
</Anonymous>
Als Fehler bekomme ich
[root@dns init.d]# ./proftpd start
proftpd starten: - Fatal: <Directory>: directive not allowed in <Limit> context
[FEHLGESCHLAGEN]
Dies ist meine proftpd.conf
# This is the ProFTPD configuration file
#
#Basiseinstellungen
ServerType standalone
MaxInstances 30
TimeoutIdle 300
TimeoutNoTransfer 300
TimeoutStalled 300
UseReverseDNS no
LogFormat uploadz "%t %u\@?*1 \"%r\" %s %b bytes"
SyslogFacility LOCAL5
#Einstellungen fuer den Basisserver die auch fuer
#den virtuellen server definiert werden koenen
ServerName "FTP at dns.lan.de"
Port 21
<Limit Login>
DenyAll
</Limit>
#Globale Einstellungen: fuer den basis Server UND den virtuellen
<Global>
ServerIdent off
AllowRetrieveRestart on
MaxClients 20 "System ist ausgelastet (maximal %m Nutzer)."
MaxClientsPerHost 3 "Ihr system ist bereits mehrmals verbunden."
Umask 022
User nobody
Group nobody
</Global>
#Konfiguration fuer Anonymous FTP, das hochladen von dateien ist im verzeichnis
#incoming erlaubt
<Anonymous /home/ftp>
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 30
DisplayLogin welcome.msg
ExtendedLog /var/log/ftp_uploads WRITE uploadz
<Limit LOGIN>
AllowAll
</Limit>
<Limit WRITE>
DenyAll
<Directory /home/ftp/incoming/*>
<Limit READ DIRS CWD>
DenyAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
</Anonymous>
Als Fehler bekomme ich
[root@dns init.d]# ./proftpd start
proftpd starten: - Fatal: <Directory>: directive not allowed in <Limit> context
[FEHLGESCHLAGEN]