in reply to Re: Config::Simple value lost on method call, huh???
in thread Config::Simple value lost on method call, huh???
> 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Config::Simple value lost on method call, huh???
by james2vegas (Chaplain) on Aug 20, 2009 at 16:26 UTC | |
by MidLifeXis (Monsignor) on Aug 20, 2009 at 16:32 UTC |