Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Boundaries? Like if its a link to a different mount?

No:

>mkdir foo >ls -ld foo drwxr-xr-x 2 alex users 40 Jul 9 10:44 foo/ >mkdir foo/bar >ls -l foo total 0 drwxr-xr-x 2 alex users 40 Jul 9 10:44 bar/ >chmod 000 foo >ls -ld foo d--------- 3 alex users 60 Jul 9 10:44 foo/ >ls foo /bin/ls: cannot open directory foo: Permission denied >cd foo -bash: cd: foo: Permission denied >chmod 100 foo >ls foo /bin/ls: cannot open directory foo: Permission denied >cd foo >pwd /tmp/foo >ls /bin/ls: cannot open directory .: Permission denied >cd bar >pwd /tmp/foo/bar >cd /tmp >chmod 400 foo >ls -ld foo dr-------- 3 alex users 60 Jul 9 10:44 foo/ >cd foo -bash: cd: foo: Permission denied >cd foo/bar -bash: cd: foo/bar: Permission denied >

To read the contents of a directory (/bin/ls, opendir/readdir), you need read permissions, the "r" bit, 4 in the usual octal numbers.

To "cross" the directory, e.g. make it the current directory or just use it in a path, you need execute permissions, the "x" bit, 1 in the usual octal numbers.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

In reply to Re^5: CGI script to output data as CSV by afoken
in thread CGI script to output data as CSV 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":



  • 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.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found