Monday, April 21, 2008

Recursively setting sensible permissions

find . -type d -exec chmod 755 {} \; -or -type f -exec chmod 644 {} \;

UPDATE: Norgg and patrick have pointed out that the following, more simple command, does the same:

chmod -R a+rX .

No comments: