Le samedi 21 septembre 2019 à 00:43:47+0200, Antoine Pietri a écrit : > 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
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! -- Pierre-Elliott Bécue GPG: 9AE0 4D98 6400 E3B6 7528 F493 0D44 2664 1949 74E2 It's far easier to fight for one's principles than to live up to them.
signature.asc
Description: PGP signature