From: Alex B. <en...@tu...> - 2001-10-03 22:33:42
|
hi all, anyone have an opinion about file permissions? I just wrote this to standardize the perms of the source tree: find . -type f -exec chmod u+rw,g+rw,a+r {} \; find . -type f -exec chmod u-Xx,g-Xx,a-Xx {} \; find . -type f -name '*.sh' -exec chmod u+x,g+x {} \; find . -type f -name '*.pl' -exec chmod u+x,g+x {} \; find . -type d -exec chmod u+rwx,g+rwx,a+rx {} \; find . -type d -name 'CVS' -exec chmod -R u+rwx,g+rw,a+rx {} \; find . -type f -path '*CVS*' -prune -exec chmod u+rw,g+rw,a+r {} \; It makes all normal files user/rw, group/rw, all/r - but makes .sh and .pl files executable. (No .php files need to be executable) I was thinking of adding a <fsperms> <sourcefile> <user>rw</user> <group>rw</group> <all>r</all> </sourcefile> <sourcedir> <user>rwx</user> <group>rwx</group> <all>rx</all> </sourcedir> <htdocs> <user>r</user> <group>r</group> <all>r</all> </htdocs> </fsperms> anyone like that idea? :) _a |