I'm afraid ikegami is right on this one. For me, the magic of modes is one of the most confusing areas in *nix.

jth@reina:~/tmp/t$ ls -l total 8 dr--r--r-- 2 jth jth 4096 2008-09-26 06:42 r d--x--x--x 2 jth jth 4096 2008-09-26 06:42 x jth@reina:~/tmp/t$ ls r ls: cannot access r/file: Permission denied file jth@reina:~/tmp/t$ ls x ls: cannot open directory x: Permission denied jth@reina:~/tmp/t$ cat r/file cat: r/file: Permission denied jth@reina:~/tmp/t$ cat x/file contents of x/file

As you can see, r lets me list the file with ls (read the directory) but not access the file while x lets me access the file ("search") but not list the directory.

Don't feel too bad, I've been messing with modes for about 15 years and I still had to test to see who was right. Besides, you are completely correct when you say that one would almost always want rx on a directory.


In reply to Re^6: Why Perl misses installed modules ? by rowdog
in thread Why Perl misses installed modules ? by Anonymous Monk

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.