Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: CGI script to output data as CSV

by Anonymous Monk
on Jul 09, 2015 at 08:17 UTC ( [id://1133909]=note: print w/replies, xml ) Need Help??


in reply to Re^3: CGI script to output data as CSV
in thread CGI script to output data as CSV

1 means execute file / crossing directory allowed ("execute", "x").

Boundaries? Like if its a link to a different mount?

Replies are listed 'Best First'.
Re^5: CGI script to output data as CSV
by afoken (Chancellor) on Jul 09, 2015 at 08:54 UTC
    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". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1133909]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-04-19 11:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found