There are many ways, some are ugly, and none especially perl.
have your webserver run as root, you can then make the files whatever you want ;-)
This is of course, a Bad Idea.
clever use of the Group directive
http://stein.cshl.org/WWW/software/sbox/
http://cgiwrap.sourceforge.net/
http://www.snert.com/Software/mod_become/index.shtml
UPDATE:
I forgot to mention (memory spurred by tangential remark by jeffa),
setting the directory to setgid. Thus if nobody and user are in a
group, and the directory is group writable and setgid
group all files created within will be in the
group and editable by both. I have done this
before, it can get a little hairy though.
This works best with a RedHat type system,
since each user has their own group.
All that is required is to add nobody to
each of these groups.
Achh, I can't believe I missed suexec! Zaxo++.
(Suexec can be a major pain though,
most notably the DocumentRoot gets locked in at compile time)
I actually used both suexec and the setgid trick
together. The reason why I needed the setgid
supplement is that I was also using
mod_dav. With WebDAV
files are created by the webserver *proper*...
PS> umask 002 could not give you a file that is a+w (or even o+w to be more specific).
--
perl -pe "s/\b;([st])/'\1/mg"
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.