Python creates "locked" temp dir

utabintarbo utabintarbo at gmail.com
Thu Dec 16 13:33:53 EST 2010


FWIW, I got around the issue with some samba mount options. They still
show as 0700, but I, or anybody elsefor that matter, can still access
them.

Computers are weird. :P

Thanks to all who responded. :)

On Dec 10, 2:57 pm, Alex Willmer <a... at moreati.org.uk> wrote:
> On Dec 8, 6:26 pm, Christian Heimes <li... at cheimes.de> wrote:
>
> > There isn't a way to limit access to a single process. mkdtemp creates
> > the directory with mode 0700 and thus limits it to the (effective) user
> > of the current process. Any process of the same user is able to access
> > the directory.
>
> > Christian
>
> Quite right. My apologies for confusing temporary file creation, for
> which exclusive access is used and temporary directory creation for
> which there is no such mode.




More information about the Python-list mailing list