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:
>
> >
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
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
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
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
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
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