- Eric Broens via Mailman-users (mailman-users@mailman3.org) [201214 12:04]:
despite mailman is running as mailman user and the required periodic jobs have all been created in crontab for the mailman user, a permission denied exception for the digest file has been logged in mailman.log: Dec 14 11:31:42 2020 (399913) Uncaught runner exception: [Errno 13] Permission denied: '/var/lib/mailman3/templates/lists/...//list:member:digest:header.txt'
The subdirectories and files of the templates subdirectory got the root owner and group: drwxr-xr-x. 3 mailman mailman 4096 Dec 12 17:58 templates
drwxr-xr-x. 11 root root 4096 Dec 12 19:20 lists
-rw-rw----. 1 root root 16 Dec 12 19:19 list:member:digest:header.txt
Unix permissions: how could the mailman user read that file? To be able to read a file, the affected uid/gid needs x permission for the path (to access the inode), and r permission for the file itself. This seems to fail here.
Short term solution would be chmod, but basically the installation (scripts) should be fixed (or this might repeat).
You can test that also with sudo -u mailman cat $file and see if the user mailman can read the file.
I would also recommend to look at the other files around.
Regards, Andi