Public here to tip a few, very few words to someone who asked me how we can recursively change the permissions of the entire contents of a directory in a correct and - most importantly - painless. Since we want to assign permissions to files and directories 644 755 - as always should be done - just move to that directory and run the following commands:

find . -type f -print0 | xargs -0 chmod 644

find . -type d -print0 | xargs -0 chmod 755

Others do not need ...

Share this content:
  • del.icio.us
  • Google Bookmarks
  • Digg
  • Facebook
  • Technorati
  • MySpace
  • Twitter