[Mailman-Users] Everything's a bug?
Paul Tomblin
ptomblin at xcski.com
Sat Aug 12 04:23:33 CEST 2000
Quoting Jeme A Brelin (jeme at brelin.net):
> On Fri, 11 Aug 2000, Dan Mick wrote:
> > > File "/usr/local/mailman/Mailman/Logging/Logger.py", line 55, in __get_f
> > > f = self.__fp = open(self.__filename, 'a+')
> > > IOError: [Errno 13] Permission denied: '/usr/local/mailman/logs/error'
> > >
> > > Can I get a hint (or a clue)?
> >
> > It seems like this is a HUGE clue: "Permission denied".
>
> Yes, of course that's a huge clue. I got a bit hasty in composing my
> original message.
>
> > So, uh, what are the permissions of the program which is
> > running, and the permissions of the directory and file?
>
> Lemme show you the two that you kept from the excerpt:
> -rw-r--r-- 1 mailman mailman 2494 Aug 11 18:11 /usr/local/mailman/Mailman/Logging/Logger.py
> drwxrwsr-x 2 mailman mailman 1024 Aug 11 18:08 /usr/local/mailman/logs/
>
> /usr/local/mailman/logs/error does not exist.
>
> I touched the file and changed its perms so now we have this:
> -rw-rw-r-- 1 mailman mailman 0 Aug 11 19:11 /usr/local/mailman/logs/error
>
> This changed nothing. The output is exactly the same.
error is written to by the web server. On my machine, that's
userid "nobody" with group "nobody". So error should be owned by userid
"nobody" with groupid "mailman". That way the web server can write to it,
and so can mailman. Here is an ls -la in my logs directory:
drwxrwsr-x 2 root mailman 1024 Feb 24 15:23 ./
drwxr-sr-x 16 mailman mailman 1024 Jul 17 09:56 ../
-rw-rw-r-- 1 nobody mailman 18774 Aug 11 19:27 bounce
-rw-rw-r-- 1 mailman mailman 105956 Aug 11 19:17 digest
-rw-rw-r-- 1 nobody mailman 9043 Jul 20 13:40 error
-rw-rw-r-- 1 nobody mailman 689551 Aug 11 22:16 post
-rw-rw-r-- 1 nobody mailman 56139 Aug 10 17:56 subscribe
-rw-rw-r-- 1 nobody mailman 26447 Aug 11 14:24 vette
--
Paul Tomblin <ptomblin at xcski.com>, not speaking for anybody
"Oh my G'Quan, they killed Koshi!" - Citizen G'kyle, Babylon Park
More information about the Mailman-Users
mailing list