Proftpd startet nicht !

Alles, was den ProFTPD betrifft, kann hier besprochen werden.

Proftpd startet nicht !

Postby Aidi » 20. May 2007 14:08

Hallo

ich verwende auf 2 Rechner Debian Etch und XAMPP Linux 1.6.1
ich möchte gern Keinen andren FTPD als Proftpd nutzen!

Er sollte auch allein installiert sein, denn :

Code: Select all
debiani:/opt/lampp/htdocs# dpkg -l '*ftp*' | grep '^i' | more
ii  proftpd        1.3.0-19       Versatile, virtual-hosting FTP daemon
ii  proftpd-doc    1.3.0-19       Versatile, virtual-hosting FTP daemon (Docum


in /opt/lampp/ das einzige .pid ist ddclient.pid, kein debug.log (woher auch)

trotzdem wenn ich den starten möchte :
Code: Select all
debiani:/opt/lampp/htdocs# /opt/lampp/lampp reloadftp
XAMPP: ProFTPD laeuft gar nicht...

debiani:/opt/lampp/htdocs# /opt/lampp/lampp startftp
XAMPP: Ein anderer FTP daemon laeuft bereits.


wer ist Dieser Andere, finde ich in ps -aux auch nicht.
Dieser Andere funtzt und ich kann mich über mit diesem über Konqueror verbinden.

vielleicht dem Aufspüren hilft?! als ich mal proftpd deinstalliert und ftp 127.0.0.2 eingegeben hab, war folgende Meldung:
var/run/proftpd/proftpd.scoreboard: No such file or directory durch link auf das entsprechnde Verzeichnis verschwand die Meldung
aber hat nicht geholfen nach wie vor ( rätselhaft) wenn ich eingebe:

Code: Select all
debiani:~# ftp 127.0.0.2
bash: ftp: command not found
debiani:~# whereis ftp
ftp:
debiani:~# whereis proftp
proftp:
debiani:/opt/lampp/htdocs# su nobody
debiani:/opt/lampp/htdocs$ whoami
nobody
debiani:/opt/lampp/htdocs$ ftp 127.0.0.1
sh: ftp: command not found

Hat jemand eine Idee?

Gruss

Aidi
Last edited by Aidi on 20. May 2007 14:39, edited 2 times in total.
Tomorrow is always another day
Aidi
 
Posts: 8
Joined: 23. April 2007 21:37
Location: Leipzig

Postby DJ DHG » 20. May 2007 14:20

Moin moin!

versuche es mal mit

Code: Select all
lsof -i 4 | grep :ftp


mfg DJ DHG
User avatar
DJ DHG
AF Moderator
 
Posts: 2455
Joined: 27. December 2002 13:50
Location: Kiel

Postby Aidi » 20. May 2007 14:25

Wow!! so schnelle Antwort, herzlichen Dank!

Code: Select all
debiani:~# lsof -i 4 | grep :ftp
inetd     3183        root    4u  IPv4   9284       TCP *:ftp (LISTEN)


wie geht es bitte weiter ?

Gruss

Aidi
Tomorrow is always another day
Aidi
 
Posts: 8
Joined: 23. April 2007 21:37
Location: Leipzig

Postby DJ DHG » 20. May 2007 14:41

Aidi wrote:Wow so schnelle Antwort herzlichen Dank!

debiani:~# lsof -i 4 | grep :ftp
inetd 3183 root 4u IPv4 9284 TCP *:ftp (LISTEN)

wie geht es weiter ?

Gruss

Aidi


Du kannst den FTP-Server jetzt, an Hand der Pid-Id, killen.
Code: Select all
kill -9 3183


Ist jedoch nicht sehr "sauber", vor allem wird der FTP "wieder kommen".

Siehe dazu auch mal in
/etc/inetd.conf

nach bzw
Code: Select all
man inetd.conf



mfg DJ DHG
User avatar
DJ DHG
AF Moderator
 
Posts: 2455
Joined: 27. December 2002 13:50
Location: Kiel

Postby Aidi » 20. May 2007 15:23

@ DJ DHG
Super !

Code: Select all
debiani:~# kill -9 3183
debiani:~# /opt/lampp/lampp startftp
XAMPP: Starte ProFTPD...


hmm! es bleibt dabei:

Code: Select all
debiani:~# ftp 127.0.0.2
bash: ftp: command not found


DJ DHG wrote:
Siehe dazu auch mal in
/etc/inetd.conf

nach bzw
Code: Select all
man inetd.conf



ich werde mich wohl damit beschäftigen müssen !

Code: Select all
debiani:~# cat /etc/inetd.conf | grep ftp
ftp             stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/sbin/in.ftpd -z cert=/etc/ftpd-ssl/ftpd.pem -z key=/etc/ftpd-ssl/ftpd.pem


zunächst scheint mir die Lösung, die Zeile zu kommentieren! oder
Code: Select all
update-inetd --remove ftp
?!

DJ DHG wrote:Ist jedoch nicht sehr "sauber", vor allem wird der FTP "wieder kommen".


Gibt es sauberere Lösung?

Gruß

Aidi
Last edited by Aidi on 20. May 2007 23:31, edited 2 times in total.
Tomorrow is always another day
Aidi
 
Posts: 8
Joined: 23. April 2007 21:37
Location: Leipzig

Postby DJ DHG » 20. May 2007 20:42

Gibt es sauberere Lösung?


Ja, wie du schon selber sagtest, mit updtae-inted oder rausfinden welcher FTP
Server das jetzt ist und ihn deinstallieren.

mfg DJ DHG
User avatar
DJ DHG
AF Moderator
 
Posts: 2455
Joined: 27. December 2002 13:50
Location: Kiel

Postby Aidi » 21. May 2007 01:17

Hallo,

THX

DJ DHG wrote:mit updtae-inted oder rausfinden welcher FTP Server das jetzt ist und ihn deinstallieren.

auch getan:
Code: Select all
debiani:/home/aifa# update-inetd --remove ftp
debiani:/home/aifa# /opt/lampp/lampp startftp
XAMPP: Starte ProFTPD...
debiani:/home/aifa# ftp 127.0.0.2
bash: ftp: command not found
debiani:/home/aifa# lsof -i 4 | grep :ftp
proftpd   5684      nobody    0u  IPv4  16458       TCP *:ftp (LISTEN)


hmm! sehr fragwürdig!!

Via Konqueror kann ich per ftp aufs Netzwerk und neurdings auch auf 172.0.0.1, 172.0.0.2 zugreifen mit regulärem
Benutzer (aifa). nobody (mit pw: lampp) darf nur auf 172.0.0.1 zugreifen nach 2malige Eingabe v. passwort und landet in den
Ordner /opt/lampp/anonymous/pub?!

Gut! es ist evtl. ausschließlich Frage der Konfiguration i

Schade nur , dass es auf der Konsole nicht funktioniert.

Gruß

Aidi
Tomorrow is always another day
Aidi
 
Posts: 8
Joined: 23. April 2007 21:37
Location: Leipzig

Postby DJ DHG » 21. May 2007 11:01

[...]bash: ftp: command not found [...]


Liegt daran, dass es nicht installiert ist?.
mfg DJ DHG
User avatar
DJ DHG
AF Moderator
 
Posts: 2455
Joined: 27. December 2002 13:50
Location: Kiel

Postby Aidi » 22. May 2007 02:12

Hallo,

Liegt daran, dass es nicht installiert ist?.


bedeutet denn folgendes nicht, dass proftp installiert ist :

Code: Select all
debiani:/etc# dpkg -l '*ftp*' | grep '^i'
ii  proftpd        1.3.0-19       Versatile, virtual-hosting FTP daemon



eine neue Installation hat nichts daran geändert nur der Besitzer jetzt ist root :-(

und wieder wie gehabt:

Code: Select all
debiani:/etc# ftp 127.0.0.1
bash: ftp: command not found

debiani:/etc# /opt/lampp/lampp startftp
XAMPP: Ein anderer FTP daemon laeuft bereits


Edit:
gelöst
Es war sftp der Störenfriede
update-inetd --remove sftp
update-inetd --remove ftp

Es funkt jetzt auch in FF und das reicht mir.

Aidi
Tomorrow is always another day
Aidi
 
Posts: 8
Joined: 23. April 2007 21:37
Location: Leipzig


Return to ProFTPD

Who is online

Users browsing this forum: No registered users and 7 guests