[Mailman-Users] Permission denied

Andreas Freyvogel afreyvogel at ecmarket.com
Tue Jan 18 18:02:09 CET 2005


Have you tried running "check_perms -f"? I had some similar problems with a
new installation and it turns out the permissions on the files and
directories weren't correct - that command should fix it.

Hope that helps.
-Andreas



-----Original Message-----
From: mailman-users-bounces at python.org
[mailto:mailman-users-bounces at python.org]On Behalf Of John Poltorak
Sent: Tuesday, January 18, 2005 7:40 AM
To: mailman-users at python.org
Subject: Re: [Mailman-Users] Permission denied


On Tue, Jan 18, 2005 at 01:10:38PM +0100, Brad Knowles wrote:
> At 11:44 AM +0000 2005-01-18, John Poltorak wrote:
>
> >  Jan 18 11:35:20 2005 qrunner(10393): OSError :  [Errno 13] Permission
denied:
> >
>
>'/usr/local/mailman/qfiles/virgin/1106041778.22+6270e8743606d6150c4dd1d6abb
b5b7514ed40ce.pck'
> >
> >
> >
> >  Is the Errno 13 something which is received from the OS?
>
>
> 	So, errno=13 is definitely being passed up by the OS to Mailman,
> which is correctly interpreting this to mean that some
> file/filesystem permission was denied to it.
>
> 	As to exactly what that means in your particular context, it's
> hard to say.  I'd go looking at permissions and ownership of
> everything from /usr/local/mailman on down, and try running the
> program /usr/local/mailman/bin/check_perms.

I think the problem is trying to delete an open file...

Is there any reason why the os.unlink (in Switchboard.py) below couldn't
be done after fp.close?



    def dequeue(self, filebase):
        # Calculate the filename from the given filebase.
        filename = os.path.join(self.__whichq, filebase + '.pck')
        # Read the message object and metadata.
        fp = open(filename)
        os.unlink(filename)
        try:
            msg = cPickle.load(fp)
            data = cPickle.load(fp)
        finally:
            fp.close()
        if data.get('_parsemsg'):
            msg = email.message_from_string(msg, Message.Message)
        return msg, data


> --
> Brad Knowles, <brad at stop.mail-abuse.org>
>
> "Those who would give up essential Liberty, to purchase a little
> temporary Safety, deserve neither Liberty nor Safety."
>
>      -- Benjamin Franklin (1706-1790), reply of the Pennsylvania
>      Assembly to the Governor, November 11, 1755
>
>    SAGE member since 1995.  See <http://www.sage.org/> for more info.


--
John



------------------------------------------------------
Mailman-Users mailing list
Mailman-Users at python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/






More information about the Mailman-Users mailing list