I got a refresher looking this up... thanks...
Found a note I left for myself:
Quote:
Directory attributes have different meanings than files, related to how the inode is handled.
Read allows access to directory contents.
Write allows file creation in a directory.
Execute allows traversal (i.e., search, see below) of the directory.
|
And from chmod man page:
Quote:
The letters rwxXst select file mode bits for the affected users: read (r), write (w), execute (or search for directories) (x), execute/search only if the file is a directory or already has execute permission for some user (X)
|
When you think about it, you cannot "read", "write" or "execute" a directory - so the attribute bits are put to better use.