[Mailman-Users] mhonarc and non-world-readable archives problem

Mark Sapiro msapiro at value.net
Mon Jan 8 02:25:49 CET 2007


Frank Cusack wrote:

>I've built mailman-2.1.9 with the mhonarc patch
>(http://www.openinfo.co.uk/mm/patches/mhonarc/index.html) and it works
>great.  I am running on Solaris 10 with python 2.5.
>
>The problem I have is that the list archives are not created world-readable.
>
>[root at mailman:/var/mailman/archives/public]# ls -l
>total 1
>lrwxrwxrwx   1 webservd mailman       34 Jan  7 15:32 test -> 
>/var/mailman/archives/private/test
>[root at mailman:/var/mailman/archives/public]# ls -l test/
>total 21
>drwxrwsr-x   2 mailman  mailman        9 Jan  7 15:35 2007-January
>-rw-rw-r--   1 mailman  mailman     1537 Jan  7 15:35 2007-January.txt
>drwxrws---   2 mailman  mailman        3 Jan  7 15:35 htdig
>-rw-rw-r--   1 webservd mailman     2640 Jan  7 15:35 index.html
>-rw-rw----   1 mailman  mailman      566 Jan  7 15:35 pipermail.pck
>[root at mailman:/var/mailman/archives/public]# ls -l test//2007-January
>total 38
>-rw-rw----   1 mailman  mailman     6851 Jan  7 15:35 .mhonarc.db
>-rw-rw----   1 mailman  mailman     1177 Jan  7 15:35 author.html
>-rw-rw----   1 mailman  mailman     1191 Jan  7 15:35 date.html
>lrwxrwxrwx   1 mailman  mailman       11 Jan  7 15:35 index.html -> 
>thread.html
>-rw-rw----   1 mailman  mailman     2402 Jan  7 15:35 msg00000.html
>-rw-rw----   1 mailman  mailman     1205 Jan  7 15:35 subject.html
>-rw-rw----   1 mailman  mailman     1145 Jan  7 15:35 thread.html
>[root at mailman:/var/mailman/archives/public]#
>
>In mm_cfg.py, I have MAILMAN_GROUP = 'mailman'.  Now, if I set that
>to www then would that make these files be created with group www?
>Just wondering, because that doesn't actually help me.


Don't do it. It will break almost everything. See
<http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq06.016.htp>.

That said, these files in general are created by ArchRunner and are
created in the group in which ArchRunner runs which is normally the
group of the user that ran 'bin/mailmanctl start'.


>My webserver
>(thttpd) requires that files be world-readable in order to serve
>them, regardless of whether the web server actually has access permission.
>Also just wondering, why is public/test a symlink to ../private/test?
>The mailing list (and the archives) are not private.


The archives are always created/stored in archives/private. This is at
least in part so archives can be changed back and forth between
private and public simply by creating/deleting the symlink. The files
themselves are normally world readable. I don't know why the .html
files in your monthly directories are not world readable. They should
be. Perhaps it has something to do with the MHonArc patch. Also, is
msg00000.html an archived message? Normally these are named
NNNNNN.html, not msgNNNNN.html.


>So how can I make the archives be created world-readable?


I'm guessing this has something to do with the MHonArc patch you
installed, but I really don't know.

-- 
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list