[Pkg-mailman-hackers] Bug#940858: mailman3: `mailman create` as root creates directory with wrong owner

Antoine Pietri antoine.pietri1 at gmail.com
Fri Sep 20 23:43:47 BST 2019


Source: mailman3
Version: 3.2.1-1
Severity: important

Dear Maintainer,

When using the command `mailman create` as root, it creates a folder in
/var/lib/mailman3/lists/ with the root:root owner/group.

This then causes the following error that makes the mailing list unusable:

Sep 20 16:28:58 2019 (30951) Uncaught runner exception: [Errno 13] Permission denied: '/var/lib/mailman3/lists/ml.example.org/digest.mmdf'
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/mailman3/lists/ml.example.org/digest.mmdf'


I think this command, when run as root, should create the directory with the
appropriate owner/group (list:list), so that we don't have to chown the
directory manually thereafter. Or at least tell us that we need to run this
chown manually if mailman can't do it for some reason.

Thanks,

-- System Information:
Debian Release: 10.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the Pkg-mailman-hackers mailing list