[Mailman-Users] OSError: [Errno 13] Permission denied /var/lib/mailman/archives/private/list/attachments: No such file or directory

Mark Sapiro mark at msapiro.net
Wed May 9 06:17:36 CEST 2012


On 5/8/2012 8:22 PM, David wrote:
> 
> 
> On Tue, May 8, 2012 at 9:34 PM, Mark Sapiro <mark at msapiro.net
> <mailto:mark at msapiro.net>> wrote:
> 
> 
>     What about newly archived messages. Presumably, those are not owned by
>     www-data. can you access them?
> 
> 
> They are owned by www-data and I can access them. The reason they are
> owned by www-data is because of the directory permissions the
> "bin/check_perms -f" command created:
> 
> drwxrwsr-x 2 www-data list  4096 May  8 22:42 .
> 
> The group "s" permission, which the check_perms script set, does the
> following:
> 
>     If the SGID (Set Group Identification) attribute is set on a
>     directory, files created in that directory inherit its group ownership. 


Yes, and what that means is that created subordinate directories will be
group 'list' and SETGID, and created subordinated files will be group 'list'

But, the owner, not the group, will be the id of the user that created
them which for archived files will normally be 'list' not 'www-data'
because the files are created by ArchRunner, not by the web server.

So, back to my original questions. What is the ownership of files
archived after you ran your 'chown -R', and can you access them, and
what were the ownership and permissions of some example archived
messages and their containing directories before you changed them?

-- 
Mark Sapiro <mark at msapiro.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