#940858 mailman3: `mailman create` as root creates directory with wrong owner

Package:
src:mailman3
Source:
mailman3
Submitter:
Antoine Pietri
Date:
2020-12-29 17:57:03 UTC
Severity:
important
Tags:
#940858#5
Date:
2019-09-20 22:43:47 UTC
From:
To:
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,

#940858#10
Date:
2020-02-21 20:56:23 UTC
From:
To:
Le samedi 21 septembre 2019 à 00:43:47+0200, Antoine Pietri a écrit :

Hi,

Thanks for your bug report!

The main reason it's not obvious to act upon this is that it's Debian's
choice to run mailman3 as list:list, hence the program can't really
guess if being launched as root:root is normal or not. In my opinon one
should know the potential impact of running a program as a specific
user.

If you have an idea of a way to work upon that properly, I'm all ears.

Cheers!

#940858#15
Date:
2020-07-30 12:51:10 UTC
From:
To:
Confirm this bug on Debian 10 with mailman 3.2.1-1.
Thanks, Marco

#940858#20
Date:
2020-12-29 17:09:28 UTC
From:
To:
Hello,

Am 21.02.20 um 21:56 schrieb Pierre-Elliott Bécue:
for. It takes care of invoking `/usr/bin/mailman` as user `list:list`.

Kind regards
  jonas

#940858#25
Date:
2020-12-29 17:54:33 UTC
From:
To:
Am 29.12.20 um 18:51 schrieb Debian Bug Tracking System: