A CGI script's permission set is checked by the web server and (hopefully) makes sure that the execute bit is set for "world" or "other". It doesn't care about the rest. A webserver will never show the contents of a CGI script if it's configured to execute it, thus considering 755 vs. 711 is irrelevant (the entire world can execute it through web browsers via the server). These are only meaningful on the local level. Do you want other users (or some guest account) to be able to read your source or just execute it (perhaps in interactive mode...)? This is considering that you are using a standard UN*X file system- not something liek I'm forced to use- the Andrew File System- which blows. Enough with the ranting....

if you're confused about what the numbers (bit masks) mean, i suggest using what i like to call a "UNIX filesystem primer" like midnight commander. if you're using terms like "secure", then 711 is "more secure" than 744 since it reduces permissions (if that's what u ask)...

AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.

In reply to Re: Secure Permissions? by AgentM
in thread Secure Permissions? by footpad

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.