Page 1 of 1

proftpd startet nicht mehr

Posted: 2008-03-24 20:08
by 1nf0rmat1ker
Hallo,
habe auf unserem Server (Debian 4) proftpd als FTP-Server installiert, hat alles wunderbar geklappt und einwandfrei funktioniert!
Bin heute wieder aus dem Urlaub zurückgekommen und der proftpd startet plötzlich nicht mehr...

syslog sagt:
proftpd[22934]: notice: unable to bind to Unix domain socket at '/var/run/proftpd/test.sock': Permission denied
proftpd[22934]: notice: unable to listen to local socket: Address already in use
proftpd[22934]: localhost - PRIVS_ROOT: unable to seteuid(): Operation not permitted
proftpd[22934]: localhost - PRIVS_ROOT: unable to setegid(): Operation not permitted
proftpd[22934]: localhost - PRIVS_RELINQUISH: unable to seteuid(PR_ROOT_UID): Operation not permitted
proftpd[22934]: localhost - PRIVS_RELINQUISH: unable to setegid(session.gid): Operation not permitted
proftpd[22934]: localhost - PRIVS_RELINQUISH: unable to seteuid(session.uid): Operation not permitted
proftpd[22934]: localhost - mod_delay/0.5: error opening DelayTable '/var/run/proftpd/proftpd.delay': No such file or directory
proftpd[22934]: localhost - PRIVS_ROOT: unable to seteuid(): Operation not permitted
proftpd[22934]: localhost - PRIVS_ROOT: unable to setegid(): Operation not permitted
proftpd[22934]: localhost - PRIVS_RELINQUISH: unable to seteuid(PR_ROOT_UID): Operation not permitted
proftpd[22934]: localhost - PRIVS_RELINQUISH: unable to setegid(session.gid): Operation not permitted
proftpd[22934]: localhost - PRIVS_RELINQUISH: unable to seteuid(session.uid): Operation not permitted
proftpd[22934]: localhost - notice: unable to listen to local socket: No such file or directory
proftpd[22934]: localhost - unable to set daemon groups: Operation not permitted
proftpd[22934]: localhost - unable to set uid to 65534, current uid: 107

Es wurde an den Konfigurationsdateien seit dem nichts geändert; in inetd.conf steht:
ftp stream tcp nowait ftp /usr/sbin/tcpd /usr/sbin/proftpd

proftpd wird als Benutzer ftp (107, nogroup, /bin/false) ausgeführt (ServerType inetd).

Hat jemand einen Tipp für mich, wie ich den FTP-Server wieder zum Laufen bekomme?

Gruß,

Martin

Re: proftpd startet nicht mehr

Posted: 2008-03-24 20:20
by freddy36
Ehm, kanns sein das du versuchst proftpd per inetd als standalone zu starten, das wird nix ;=)
Mach den eintrag aus der inetd.conf raus (inetd neustarten).
In der proftpd.conf sollte "ServerType standalone" drinne stehen.
Dann müsstest du ihn mit "/etc/init.d/proftpd start" starten können.
Das ist eigentlich Standard unter Debian, wie hast du ihn installiert?

Re: proftpd startet nicht mehr

Posted: 2008-03-24 20:22
by Joe User
Alles nötige steht in diesen beiden Zeilen:
1nf0rmat1ker wrote: proftpd[22934]: notice: unable to bind to Unix domain socket at '/var/run/proftpd/test.sock': Permission denied
proftpd[22934]: notice: unable to listen to local socket: Address already in use

Re: proftpd startet nicht mehr

Posted: 2008-03-24 20:24
by 1nf0rmat1ker
Hallo,
danke für den Tipp. Genau so hatte ich gestartet. Hatte vergessen das ich das zum Test geändert hatte (als es jetzt heute nicht ging...)
Stelle es mal wieder zurück und schicke dir dann noch mal Fehler (wenn sich was geändert hat...)
Gruß,

Martin

Re: proftpd startet nicht mehr

Posted: 2008-03-24 20:37
by 1nf0rmat1ker
Hallo,
@Freddy36: habe es jetzt zurück geändert. Am Fehler ändert das nichts... ...die Zeile in inetd.conf ändert sich aber nicht (habe über Webmin / inetd / Änderungen anwenden ein SIGHUP geschickt, da inetd nicht über /etc/init.d zu starten ist...
@Joe User: Wüsste nicht welches Programm auf Port 21 laufen würde... ...wie kann ich das herausfinden?
Gruß & Danke,

Martin

Re: proftpd startet nicht mehr

Posted: 2008-03-24 20:41
by freddy36
lsof -i:21
oder
netstat -lnp
Guck auch mal nach dem UNIX Sockte da ;)
Sollte aber auch in der Prozess Liste auftauchen.

Re: proftpd startet nicht mehr

Posted: 2008-03-24 20:48
by 1nf0rmat1ker
Hallo,
danke für den Tipp!!!
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2425/inetd

Wie bringe ich denn inetd bei, dass es meinen Port freigeben soll a.k.a wie starte ich inetd neu?

Danke und Gruß,

Martin

Re: proftpd startet nicht mehr

Posted: 2008-03-24 20:53
by 1nf0rmat1ker
Hallo,
:oops: hat sich erledigt...
Habe die Config-Datei noch einmal von Hand geändert und SIGHUP senden lassen, jetzt läuft er wieder!!!
Vielen Dank für die schnelle Hilfe!!! =D>
Gruß,

Martin