> A directory needs 'x' to allow searching in it.

Nope. A directory needs 'r' to allow searching in it. A directory needs 'x' to allow chdir into it, and 'w' to create an entry in it.

It helps to think of a directory as a structured file (which in <update type="add"> classical </update> unix semantics, it is). Searching a directory is reading it ('r' permissions); changing directories, <update type="add">and accessing or changing the files pointed to by the directory entries</update> is executing it ('x' permissions); and modifying the directory (adding or removing entries in the structured file) is writing it ('w' permissions).

Update: So, if you want to add a new file, you need 'wx' permissions, reading the file names needs 'r', reading the file names and getting to the file itself (done by ls -l - it reads the inode) needs 'rx'. Directories act funny unless you understand what part is managed by each permission bit. Even then it can still be kindof funny.

Updates: Slight modifications after validation

--MidLifeXis

The tomes, scrolls etc are dusty because they reside in a dusty old house, not because they're unused. --hangon in this post


In reply to Re^2: Config::Simple value lost on method call, huh??? by MidLifeXis
in thread Config::Simple value lost on method call, huh??? by hesco

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.