Permissions: Difference between revisions

link to gist for gluster / apache
link to Drupal.org; add sudo because it may be necessary
Line 60: Line 60:
sudo find $DROOT/ -type f -exec chmod u=rw,g=r,o= '{}' \;
sudo find $DROOT/ -type f -exec chmod u=rw,g=r,o= '{}' \;
sudo find $DROOT/sites -type d -name files -exec chmod ug=rwx,o= '{}' \;
sudo find $DROOT/sites -type d -name files -exec chmod ug=rwx,o= '{}' \;
for d in "$DROOT/sites/*/files"; do find $d -type d -exec chmod ug=rwx,o= {} \; ; find $d -type f -exec chmod ug=rw,o= {} \; ; done
for d in "$DROOT/sites/*/files"; do sudo find $d -type d -exec chmod ug=rwx,o= {} \; ; find $d -type f -exec chmod ug=rw,o= {} \; ; done
</source>
</source>
The above script is explained at https://www.drupal.org/node/244924


=== Fixing perms on your gluster mount dir in Meza ===
=== Fixing perms on your gluster mount dir in Meza ===