[Mailman-Users] IOError: [Errno 13] Permission denied on config.pck in Fedora 30

Robert Kudyba rkudyba at fordham.edu
Wed Jul 24 16:59:29 EDT 2019


I’m getting some where here. First Apache httpd runs as user:apache:
ps -auwx|grep httpd
apache    4765  0.0  0.0  48708 23972 ?        S    16:46   0:00 /usr/sbin/httpd -DFOREGROUND
apache    4766  0.0  0.0 2548332 31472 ?       Sl   16:46   0:00 /usr/sbin/httpd -DFOREGROUND
apache    4768  0.0  0.0 2351528 31868 ?       Sl   16:46   0:00 /usr/sbin/httpd -DFOREGROUND
apache    4775  0.0  0.0 2351528 32504 ?       Sl   16:46   0:00 /usr/sbin/httpd -DFOREGROUND
apache    5003  0.0  0.0 2351528 32304 ?       Sl   16:46   0:00 /usr/sbin/httpd -DFOREGROUND

ps -auwx |grep mailman
mailman   5956  0.0  0.0 267152 38892 ?        Ss   16:51   0:00 /usr/bin/python2 /usr/lib/mailman/bin/mailmanctl -s start
mailman   5957  0.0  0.0 236672 20100 ?        S    16:51   0:00 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
mailman   5958  0.0  0.0 236676 19732 ?        S    16:51   0:00 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
mailman   5959  0.0  0.0 236584 20076 ?        S    16:51   0:00 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
mailman   5960  0.0  0.0 236588 20044 ?        S    16:51   0:00 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
mailman   5961  0.0  0.0 236688 20048 ?        S    16:51   0:00 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
mailman   5962  0.0  0.0 236548 19992 ?        S    16:51   0:00 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
mailman   5963  0.0  0.0 236548 20112 ?        S    16:51   0:00 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
mailman   5964  0.0  0.0 236584 20116 ?        S    16:51   0:00 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=RetryRunner:0:1 -s

 systemctl status mailman
● mailman.service - GNU Mailing List Manager
   Loaded: loaded (/usr/lib/systemd/system/mailman.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2019-07-24 16:51:51 EDT; 6min ago
  Process: 5948 ExecStartPre=/usr/lib/mailman/bin/mailman-update-cfg (code=exited, status=0/SUCCESS)
  Process: 5951 ExecStartPre=/usr/bin/install -m644 -o mailman -g mailman /usr/lib/mailman/cron/crontab.in /etc/cron.d/mailman (code=exited, status=0/SUCCESS)
  Process: 5952 ExecStartPre=/bin/touch /var/log/mailman/error (code=exited, status=0/SUCCESS)
  Process: 5953 ExecStartPre=/bin/chown mailman:mailman /var/log/mailman/error (code=exited, status=0/SUCCESS)
  Process: 5954 ExecStartPre=/bin/chmod 666 /var/log/mailman/error (code=exited, status=0/SUCCESS)
  Process: 5955 ExecStart=/usr/lib/mailman/bin/mailmanctl -s start (code=exited, status=0/SUCCESS)
 Main PID: 5956 (mailmanctl)
    Tasks: 9 (limit: 4915)
   Memory: 128.6M
   CGroup: /system.slice/mailman.service
           ├─5956 /usr/bin/python2 /usr/lib/mailman/bin/mailmanctl -s start
           ├─5957 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
           ├─5958 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
           ├─5959 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
           ├─5960 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
           ├─5961 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
           ├─5962 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
           ├─5963 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
           └─5964 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=RetryRunner:0:1 -s

Jul 24 16:51:51 our domain systemd[1]: Starting GNU Mailing List Manager...
Jul 24 16:51:51 our domain mailmanctl[5955]: Starting Mailman's master qrunner.
Jul 24 16:51:51 our domain systemd[1]: Started GNU Mailing List Manager.

Now I see these files, and look at the owner:
 ls -lt /var/lib/mailman/lists/mailman/
total 184
-rw-rw---- 1 apache  mailman  4352 Jul 24 16:55 config.pck
-rw-rw---- 1 apache  mailman  4352 Jul 24 16:55 config.pck.last
-rw-rw---- 1 apache  mailman 22949 Jul 24 16:54 request.pck
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 16:51 config.pck.tmp.dsm.dsm.fordham.edu.5850
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 16:47 config.pck.tmp.dsm.dsm.fordham.edu.5342
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 16:46 config.pck.tmp.dsm.dsm.fordham.edu.5002
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 16:38 config.pck.tmp.dsm.dsm.fordham.edu.3609
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 16:34 config.pck.tmp.dsm.dsm.fordham.edu.2986
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 16:32 config.pck.tmp.dsm.dsm.fordham.edu.2727
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 13:41 config.pck.tmp.dsm.dsm.fordham.edu.5113
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 11:58 config.pck.tmp.dsm.dsm.fordham.edu.22328
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 11:40 config.pck.tmp.dsm.dsm.fordham.edu.19790
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 11:29 config.pck.tmp.dsm.dsm.fordham.edu.13505
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 11:25 config.pck.tmp.dsm.dsm.fordham.edu.15335
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 11:23 config.pck.tmp.dsm.dsm.fordham.edu.14826
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 11:23 config.pck.tmp.dsm.dsm.fordham.edu.14771
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 10:03 config.pck.tmp.dsm.dsm.fordham.edu.22176
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 10:01 config.pck.tmp.dsm.dsm.fordham.edu.22179
-rw-rw-rw- 1 mailman mailman  3122 Jul 24 10:01 pending.pck
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 09:00 config.pck.tmp.dsm.dsm.fordham.edu.6326
-rw-rw-rw- 1 mailman mailman  4350 Jul 24 09:00 config.pck.tmp.dsm.dsm.fordham.edu.6329
-rw-rw-rw- 1 mailman mailman  2438 Jul 23 08:51 digest.mbox

Whenever I am in the admin page the 1st 3 files get changed to user:apache.

Is there perhaps something in the .service file that I need to change?
cat /usr/lib/systemd/system/mailman.service
[Unit]
Description=GNU Mailing List Manager
After=syslog.target network.target

[Service]
ExecStartPre=/usr/lib/mailman/bin/mailman-update-cfg
ExecStartPre=/usr/bin/install -m644 -o mailman -g mailman /usr/lib/mailman/cron/crontab.in /etc/cron.d/mailman
ExecStartPre=/bin/touch /var/log/mailman/error
ExecStartPre=/bin/chown mailman:mailman /var/log/mailman/error
ExecStartPre=/bin/chmod 666 /var/log/mailman/error
ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
ExecReload=/usr/lib/mailman/bin/mailmanctl restart
ExecStop=/usr/lib/mailman/bin/mailman-update-cfg
ExecStop=/usr/lib/mailman/bin/mailmanctl stop
ExecStop=/bin/sh -c 'echo -e "# DO NOT EDIT THIS FILE!\n#\n# Contents of this file managed by /etc/init.d/mailman\n# Master copy is /usr/lib/mailman/cron/crontab.in" > /etc/cron.d/mailman'
Type=forking

[Install]
WantedBy=multi-user.target

Does the user NEED to be the same as who Apache runs as?


More information about the Mailman-Users mailing list