Recursively change permissions to all subdirectories and files in Drupal

I used to have problems with Drupal’s sites/default/files/* directories permissions because for some reason they got messed up and this is the script that I used to fix that.

find . -type d -exec chmod 753 {} \;

this is for the files:

find . -type f -exec chmod 664 {} \;
Advertisements

One thought on “Recursively change permissions to all subdirectories and files in Drupal

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s