[Tutor] creating tempfile in cgi script

Jörg Wölke lumbricus@gmx.net
Thu, 11 Apr 2002 14:08:03 +0200 (MEST)


> Dear Tutor

[ snip ]

> What are the security implications by making tempfiles (/tmp)?

If the names of your tempfiles are not unique an unpredictable, 
another user could create symbolic links with the predicted names
of your file.

> I tried StringIO, but this creates an instance rather than file, it there
> any way to "mimic" a file?

import tempfile
dir(tempfile)

> Thanks a million for your help
> Aedin
> 

HTH, HAND and 
Greetings, J"o!

-- 
sigfault

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net