Permissions: Difference between revisions
m added Category:Filesystems using HotCat |
Add example script for fixing perms in drupal sites |
||
| Line 51: | Line 51: | ||
</source> | </source> | ||
Fix permissions on your Drupal site | |||
<source lang="bash"> | |||
DROOT='/var/www/example.com/www/drupal' | |||
USER=greg | |||
WEBGROUP=www-data | |||
sudo chown -R $USER:$WEBGROUP $DROOT/ | |||
sudo find $DROOT/ -type d -exec chmod u=rwx,g=rx,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= '{}' \; | |||
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 | |||
</source> | |||
== Wheel == | == Wheel == | ||
[[File:Bigwheel.jpg|400px|Are you a big wheel?]] | [[File:Bigwheel.jpg|400px|Are you a big wheel?]] | ||