Re: Python creates "locked" temp dir

2010-12-16 Thread utabintarbo
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 wrote: > On Dec 8, 6:26 pm, Christian Heimes wrote: > > >

Re: Python creates "locked" temp dir

2010-12-10 Thread Alex Willmer
On Dec 8, 6:26 pm, Christian Heimes 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 Qui

Re: Python creates "locked" temp dir

2010-12-08 Thread Christian Heimes
Am 08.12.2010 10:31, schrieb Alex Willmer: > 2. When you say "I am unable to access". Do you mean another script/ > process is unable to access? If so, that is the point of mkdtemp() - > to make a temporary directory that _only_ the creating process can > access. If you want to share it then tempfi

Re: Python creates "locked" temp dir

2010-12-08 Thread Christian Heimes
Am 08.12.2010 19:05, schrieb astar: > Hi, > > I recently got caught on tempfiles with respect to > urllib.urlretrieve, which can create a tmpfile. Ah, but the file > simply could not be found on the file system, even as root. But > within the program that created the tmpfile, you could do usefu

Re: Python creates "locked" temp dir

2010-12-08 Thread astar
Hi, I recently got caught on tempfiles with respect to urllib.urlretrieve, which can create a tmpfile. Ah, but the file simply could not be found on the file system, even as root. But within the program that created the tmpfile, you could do useful things with the tmpfile. So the discussion in

Re: Python creates "locked" temp dir

2010-12-08 Thread utabintarbo
Thanks for the reply. The relevant function (in a module) is as follows: def createWorkDir(pathdir="k:\\"): import tempfile, os if os.name == 'posix': pathdir = os.path.join(config.get('paths', 'MOUNTPOINT'), 'subdir1') else: pathdir = os.path.normpath(r"\\windowsmoun

Re: Python creates "locked" temp dir

2010-12-08 Thread Alex Willmer
On Dec 7, 9:03 pm, utabintarbo wrote: > I am using tempfile.mkdtemp() to create a working directory on a > remote *nix system through a Samba share. When I use this on a Windows > box, it works, and I have full access to the created dir. When used on > a Linux box (through the same Samba share), t

Python creates "locked" temp dir

2010-12-07 Thread utabintarbo
I am using tempfile.mkdtemp() to create a working directory on a remote *nix system through a Samba share. When I use this on a Windows box, it works, and I have full access to the created dir. When used on a Linux box (through the same Samba share), the created directory shows as "locked", and I a