PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ProFtpd Finde den fehler nicht!



Urkommunist
11.04.04, 11: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]

Svenny
11.04.04, 11:52
das



<Limit WRITE>
DenyAll

musst auch wieder zumachen.

Urkommunist
11.04.04, 11:56
Danke, das wars schon.
Gruß Urkommunist

Er lässt sich zwar starten aber:


[root@dns init.d]# ./proftpd start
proftpd starten: [ OK ]
[root@dns init.d]# ./proftpd status
proftpd tot, aber subsys gesperrt

Jasper
11.04.04, 12:28
Er lässt sich zwar starten aber:


[root@dns init.d]# ./proftpd start
proftpd starten: [ OK ]
[root@dns init.d]# ./proftpd status
proftpd tot, aber subsys gesperrt


in /var/lock/subsys liegt noch das proftpd-lockfile. einfach löschen und gut ist.


-j

Urkommunist
11.04.04, 13:00
Ich hab es entfernt, aber es geht immer noch nicht, komisch.



[root@dns subsys]# rm proftpd
rm: reguläre leere Datei »proftpd« entfernen? yes
[root@dns subsys]# cd /etc
[root@dns etc]# cd init.d
[root@dns init.d]# ./proftpd start
proftpd starten: [ OK ]
[root@dns init.d]# ./proftpd status
proftpd tot, aber subsys gesperrt
[root@dns init.d]# cd /var/lock/subsys
[root@dns subsys]# ls
acpid cups kudzu netfs portmap sendmail sm-client webmin
atd gpm local network proftpd smartd sshd xfs
crond iptables messagebus nfslock random smb syslog xinetd
[root@dns subsys]#

es ist schon wieder da - proftpd in /etc/var/lock/subsys

Jasper
11.04.04, 13:30
Ich hab es entfernt, aber es geht immer noch nicht, komisch.


proftpd wird zwar gestartet, beendet sich aber danach wieder. sieh in die logfiles um die ursache herauszubekommen oder starte proftpd von hand (siehe proftpd-optionen -n, -d, -c und -t).


-j

Urkommunist
11.04.04, 13:55
Ich hab nichts gefunden



[root@dns init.d]# cd /var/log
[root@dns log]# ls
acpid cups ksyms.2 lastlog news rpmpkgs.1 spooler.1 xferlog.1
boot.log dmesg ksyms.3 maillog pgsql samba squid XFree86.0.log
boot.log.1 httpd ksyms.4 maillog.1 prelink.log secure vbox XFree86.0.log.old
cron ksyms.0 ksyms.5 messages proftpd secure.1 wtmp
cron.1 ksyms.1 ksyms.6 messages.1 rpmpkgs spooler xferlog


/var/log/messages hab ich nichts dazu gefunden

hab meine config noch durch


ExtendedLog /var/log/proftpd.access_log WRITE,READ write
ExtendedLog /var/log/proftpd.auth_log AUTH auth

erweitert, aber ich krieg einfach keine Meldungen

oder wo kann man noch schauen?