On Mon, Nov 4, 2024 at 10:34 AM Gerald Vogt <v...@spamcop.net> wrote:

> Hi,
>
> On 04.11.24 02:06, Mark Sapiro wrote:
> > On 11/3/24 11:31, Arte Chambers via Mailman-users wrote:
> > We should probably cover this in the docs, but for /etc/mailman3, you
> > should do
> > ```
> > sudo mkdir /etc/mailman3
> > sudo chown mailman:mailman /etc/mailman3
> > sudo chmod 755 /etc/mailman3
> > ```
> > Then you can create all the subordinate files as the mailman user. For
> > other things like the systemd service and the postfix and web server
> > configs, you need to do them as root (via sudo).
>
> is it really necessary that the mailman user can write that directory?
> For most services, directories and files in /etc/ may be readable for
> the service but usually not writable as you don't want the service
> itself change it's core configuration.
>
> On your server it looks like this:
>
> # ls -la /etc/mailman3
> total 28
> drwxr-xr-x.  2 root mailman   95 Oct 25 08:12 .
> drwxr-xr-x. 99 root root    8192 Oct 29 07:42 ..
> -rw-r--r--.  1 root mailman  266 Oct 25 07:37 gunicorn.conf
> -rw-r-----.  1 root mailman   92 Nov 21  2023 mailman-hyperkitty.cfg
> -rw-r-----.  1 root mailman  797 Sep  9 11:20 mailman.cfg
> -rw-r-----.  1 root mailman 3015 Oct 25 08:12 settings.py
>
> and it works just fine.
>

True, but making the mailman user own the files makes life easier when you
operate from the virtualenv -
you do not have to exit the virtualenv to edit the files in /etc/mailman3,
and then re-enter the virtualenv.
You do not have to give the mailman user sudoer rights. That's the whole
point about the below:

```
sudo mkdir /etc/mailman3
sudo chown mailman:mailman /etc/mailman3
sudo chmod 755 /etc/mailman3
```

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
 In an Internet failure case, the #1 suspect is a constant: DNS.
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/WTHLGUSCZCOQ3ACZUSUCPST7ABVFOWOY/

This message sent to arch...@mail-archive.com

Reply via email to