ProFTPD startet nicht mehr

ProFTPD startet nicht mehr

Nach einem Update von Debian 7 „Wheezy“ nach Debian 8 „Jessie“ und ProFTPD 1.3.4 nach 1.3.5 musste ich heute feststellen, dass ProFTPD nicht mehr startet. Dabei wird diese Fehlermeldung ausgegeben.

Starting proftpd (via systemctl): proftpd.serviceJob for proftpd.service failed. See ’systemctl status proftpd.service‘ and ‚journalctl -xn‘ for details.

systemctl Status des Dienstes:

root@paulfr:~# systemctl status proftpd.service
● proftpd.service - LSB: Starts ProFTPD daemon
Loaded: loaded (/etc/init.d/proftpd)
Active: failed (Result: exit-code) since Sun 2015-06-28 01:06:21 CEST; 18s ago
Process: 2421 ExecStart=/etc/init.d/proftpd start (code=exited, status=1/FAILURE)

Jun 28 01:06:21 paulfr systemd[1]: Starting LSB: Starts ProFTPD daemon...
Jun 28 01:06:21 paulfr proftpd[2421]: Starting ftp server: proftpd2015-06-28 01:06:21,538 pau...tted
Jun 28 01:06:21 paulfr proftpd[2421]: 2015-06-28 01:06:21,538 paulfr proftpd[2427]: fatal: AuthUserFile: unable to use /etc/proftpd/ftpd.passwd: Operation not permitted on line 3 of '/etc/proftpd/proftpd.conf'
Jun 28 01:06:21 paulfr proftpd[2421]: failed!
Jun 28 01:06:21 paulfr systemd[1]: proftpd.service: control process exited, code=exited status=1
Jun 28 01:06:21 paulfr systemd[1]: Failed to start LSB: Starts ProFTPD daemon.
Jun 28 01:06:21 paulfr systemd[1]: Unit proftpd.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

Im Journal sieht das dann so aus:

Jun 28 01:06:21 paulfr proftpd[2421]: Starting ftp server: proftpd2015-06-28 01:06:21,538 paulfr proftpd[2427]: mod_auth_file/1.0: unable to use world-readable AuthUserFile '/etc/proftpd/ftpd.passwd' (perms 0444): Operation not permitted
Jun 28 01:06:21 paulfr proftpd[2421]: 2015-06-28 01:06:21,538 paulfr proftpd[2427]: fatal: AuthUserFile: unable to use /etc/proftpd/ftpd.passwd: Operation not permitted on line 3 of '/etc/proftpd/proftpd.conf'
Jun 28 01:06:21 paulfr proftpd[2421]: failed!
Jun 28 01:06:21 paulfr systemd[1]: proftpd.service: control process exited, code=exited status=1
Jun 28 01:06:21 paulfr systemd[1]: Failed to start LSB: Starts ProFTPD daemon.
Jun 28 01:06:21 paulfr systemd[1]: Unit proftpd.service entered failed state.

Ursache und Lösung

Die Meldungen geben schon einen Hinweis darauf, woran es liegen könnte.

AuthUserFile: unable to use /etc/proftpd/ftpd.passwd: Operation not permitted on line 3 of '/etc/proftpd/proftpd.conf'

Mit einem Hinweis von TheMengzor bin ich schließlich auf die Ursache und Lösung des Problems gekommen. Es liegt an den Rechten der ftpd.passwd Datei. Die Konfiguration von ProFTPD ist weiterhin korrekt. Zum Beheben diese drei Schritte durchführen:

cd /etc/proftpd/
chmod 0600 *.passwd
service proftpd restart

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert