#874056 pure-ftpd - configuration file not used: /etc/pure-ftpd/pure-ftpd.conf

Package:
pure-ftpd
Source:
pure-ftpd
Description:
Secure and efficient FTP server
Submitter:
"H.-Dirk Schmitt"
Date:
2023-07-01 21:03:03 UTC
Severity:
normal
#874056#5
Date:
2017-09-02 14:14:55 UTC
From:
To:
The pure-ftpd package is installing the configuration file /etc/pure-
ftpd/pure-ftpd.conf.


This file isn't used by the init-script - see journal:

Sep 02 16:04:35 nermal pure-ftpd[15002]: Starting ftp server: Running:
/usr/sbin/pure-ftpd -l pam -E -u 1000 -J HIGH -O clf:/var/log/pure-
ftpd/transfer.log -8 UTF-8 -B


So any changes due this file are useless.


So please either remove this file to avoid confusions for the users or
change the init-script to use it 😉

#874056#10
Date:
2017-09-02 14:45:35 UTC
From:
To:
Problem is that the init-script is using /usr/sbin/pure-ftpd-wrapper
for the startup.

This wrappers ignores the file /etc/pure-ftpd/pure-ftpd.conf.

So a removal of /etc/pure-ftpd/pure-ftpd.conf will help to avoid the
mess of confusion.

#874056#15
Date:
2022-11-29 09:54:54 UTC
From:
To:
Hello,

perhaps better solution would be to replace pure-ftpd.conf
with note that this configuration file is not used, and
pure-ftpd-wrapper manual page should be used instead.

#874056#20
Date:
2023-07-01 21:02:02 UTC
From:
To:
 > Problem is that the init-script is using /usr/sbin/pure-ftpd-wrapper
 > for the startup.

 > This wrappers ignores the file /etc/pure-ftpd/pure-ftpd.conf.

Maybe it makes more sense to use systemd service unit to launch
pure-ftpd, as in bug 1039336, and in the service unit just point to the
conf file?

Maintaining a wrapper script (which is not supported in the upstream) is
prone to error. Just let the daemon validate the config file and load it.