[Mailman-Users] permission issue

Matt Newville newville at cars.uchicago.edu
Fri Jan 15 11:36:08 EST 2016


Hi Mark,

Thanks very much for the reply.  The Runner programs did have mailman as
their user and group.  Following the clue given by the quote in your
signature, what I "gathered from coincidence" was that the system had
SELinux set to enforcing, but that there was no SELinux rule to allow the
mailman scripts to be run from httpd process.

Archiving is now working happily.  Thanks again!

--Matt



On Fri, Jan 15, 2016 at 12:01 AM, Mark Sapiro <mark at msapiro.net> wrote:

> On 01/14/2016 12:06 PM, Matt Newville wrote:
>
> >
> > Jan 14 11:35:01 2016 (9055) Archive file access failure:
> >         /var/lib/mailman/archives/private/test1.mbox/test1.mbox [Errno
> 13]
> > Permission denied:
> '/var/lib/mailman/archives/private/test1.mbox/test1.mbox'
> > Jan 14 11:35:01 2016 (9055) Uncaught runner exception: [Errno 13]
> > Permission denied:
> '/var/lib/mailman/archives/private/test1.mbox/test1.mbox'
> > Jan 14 11:35:01 2016 (9055) Traceback (most recent call last):
> >   File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 119, in _oneloop
> >     self._onefile(msg, msgdata)
> >   File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 190, in _onefile
> >     keepqueued = self._dispose(mlist, msg, msgdata)
> >   File "/usr/lib/mailman/Mailman/Queue/ArchRunner.py", line 73, in
> _dispose
> >     mlist.ArchiveMail(msg)
> >   File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 200, in
> > ArchiveMail
> >     self.__archive_to_mbox(msg)
> >   File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 169, in
> > __archive_to_mbox
> >     mbox = self.__archive_file(afn)
> >   File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 157, in
> > __archive_file
> >     return Mailbox.Mailbox(open(afn, 'a+'))
> > IOError: [Errno 13] Permission denied:
> > '/var/lib/mailman/archives/private/test1.mbox/test1.mbox'
> >
> > Jan 14 11:35:01 2016 (9055) SHUNTING:
> > 1452792899.410995+4ddf5a7718ff13c171a78e27a2caaf5429312510
>
>
> So ArchRunner can't write to
> /var/lib/mailman/archives/private/test1.mbox/test1.mbox.
>
>
> > Apache does load mod_suexec.so, but (as far as I can tell) it's not used
> > anywhere.
>
>
> This would only affect web accesses in any case.
>
>
> > I've tried making the permissions on the files and directories
> > /var/lib/mailman/  very liberal, but still see problems either with the
> > mbox file or (from other, existing lists that have been migrated) with
> > 'config.pck.tmp.SERVERNAME...', and the mail is not even sent.
>
>
> What are the owner, group and mode on every directory and the file in
> the path /var/lib/mailman/archives/private/test1.mbox/test1.mbox and
> every directory in the path /var/lib/mailman/lists/listname and the
> config.pck* files for the other list names with config.pck.* problems?
>
> And is ArchRunner and the other runners running as the 'mailman' user.
>
>
> > Any suggestions on what to try or how to better diagnose the problem?
>  Is
> > there a known issue with the fedora packages that suggest using a source
> > build of Mailman or Apache?
>
>
> I'm not aware of anything specific.
>
> --
> Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan
> ------------------------------------------------------
> Mailman-Users mailing list Mailman-Users at python.org
> https://mail.python.org/mailman/listinfo/mailman-users
> Mailman FAQ: http://wiki.list.org/x/AgA3
> Security Policy: http://wiki.list.org/x/QIA9
> Searchable Archives:
> http://www.mail-archive.com/mailman-users%40python.org/
> Unsubscribe:
> https://mail.python.org/mailman/options/mailman-users/matt.newville%40gmail.com
>


More information about the Mailman-Users mailing list