If it is currently owned by nobody, you've got to change the permissions on it so that you can write to it. At that point, you can decide to 1) keep it as is or 2) copy it, move your copy back on top of it, and then change perms to allow nobody to write to it later.

To get nobody to change the perms for you, put something like this in a file called fixperms.cgi (or whatever you need to do to get it to run as a CGI in your environment.)

#!/bin/sh /bin/chmod 777 /full/path/to/hosed/file.html /usr/bin/echo "Content-type: text\plain" /usr/bin/echo /usr/bin/echo "Hopefully that worked."
Make sure it is executable and then point your browser at it. After you are done with it, get rid of it.

You may have to double check the full paths to chmod and echo but the above should be right on most sane systems.

-sauoq
"My two cents aren't worth a dime.";

In reply to Re: nms wwwboard ownership silliness by sauoq
in thread nms wwwboard ownership silliness by kahrlzero

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.