[wellylug] Chmod settings for web directory?
Stephen Judd
sljudd at paradise.net.nz
Thu May 1 11:33:28 NZST 2003
OK, so here's a question.
Directories, as Ewen noted, need execute permission. It would be bad to give
execute permission to anything else in a web server docroot.
In a docroot with a bunch of directories, is there a way to recursively set
them up such that their contents are read-only but directories have execute as
well? (I mean in one or two commands, as opposed to writing a script). It is
damned inconvenient by hand...
I ask this because I have often seen docroots where *everything* is 755 (or
worse) because someone's got fed up and just went chmod -r.
(of course i would never ever do that, not even on an internal dev machine, o
no not me). (more seriously, you should never do that on devel machines because
depending on your migration strategy your borken permissions might make it on
to a production box).
stephen
More information about the wellylug
mailing list