Just thought I'd point out that Apache can be also configured
to run using a suid wrapper, so that CGIs can be run in
mode 700 (rwx------) or 500 (r-x------). In this
configuration, the CGIs execute as the user whose account
corresponds to that directory. Thus, on a system that
hosts many web accounts, a user can create a set of scripts
which are executable, have the same access as that
user, yet be unreadable by other users on the same system.
The script can also then read and write files which the
user can only access (mode 600: rw-------).
I'm not sure how common this setup is (so far I've only
run into two servers which have Apache set up this way;
both were webhosting companies).
- Zoogie
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|