My question is: can new_tmpfile() be made to work on IIS and if so how.

IIS will try to write the temporary file to the system root which mostly translates to c:\. The file's owner will be either
IUSR_{servername}, IUSR or IUSER depending on what is defined as the Anonymous http user on the server.

By default, in W2k IIS 5.0 at least, the Everyone group, wherein the owner above is included, has all rights in systemroot and the new_tmpname function will work. Security conscientious admins might have revoked those rights and that will render new_tmpfile nonfunctional.

Any further knowledge on this, brothers ?

Another funny?? thing is that there seems to be a oneoff bug regarding the name of the tmp-file.

For example Posix::tmpnam says \s3vvs9m3.6 but the file \t3vvs9m.6 is written to the system root and another example is \sa4.9 becomes \ta4.9

So the answer to the original question is YES


In reply to Re: IO::File::new_tmpfile on IIS by guha
in thread IO::File::new_tmpfile on IIS by jmcnamara

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.