On Thu, 2002-05-02 at 16:37, Nick Rout wrote:
> > chmod -R a+rX .
>
> without wishing to appear ungrateful, I believe this one is wrong, as it
> will change the files as well as the directories??
Yes, but most of the time you cannot access the files without changing
the directory permissions :)
o "a" has to have execute on directories to read the files
that are contained in the directories.
o "a" has to have read to `glob' the directory.
True, "a+rX" is a security risk if you do not want the users knowing
what files are in the directory. In that case you will have to use a
combination of "find" and "chmod" to set permissions for the directories
separately.
--
Michael JasonSmith http://www.cosc.canterbury.ac.nz/~mpj17/