[Mailman-Users] permission problem saving attachments toarchives

Mark Sapiro msapiro at value.net
Fri Mar 31 01:58:56 CEST 2006

Mark Sapiro wrote:
>What happens if you try the following:
>su mailman
>>>> import os
>>>> os.umask(002)
>>>> os.makedirs('/home/mailman/archives/private/membership/attachments/20060301/cf7df1b6', 02775)
>>>> open('/home/mailman/archives/private/membership/attachments/20060301/cf7df1b6/xxx', 'w')
>os.makedirs( ... 2775) is all one line as is
>open( ... 'w')
>Does this throw any exception? Does it create the missing directories?
>(note, type control-D in response to a >>> prompt to exit Python)

And what happens if you try

su mailman
>>> import os
>>> os.umask(002)
>>> os.makedirs('/home/mailman/archives/private/xyz/attachments/20060301/cf7df1b6', 02775)
>>> open('/home/mailman/archives/private/xyz/attachments/20060301/cf7df1b6/xxx', 'w')

where xyz is not a symlink?

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