Permissions: Difference between revisions
link to Drupal.org; add sudo because it may be necessary |
adds user find |
||
| Line 35: | Line 35: | ||
# find files that are executable and remove the execute bit | # find files that are executable and remove the execute bit | ||
sudo find . -type f -perm -ugo=x -ls -exec chmod a-x {} \; | sudo find . -type f -perm -ugo=x -ls -exec chmod a-x {} \; | ||
# find files that are not owned by www-data | |||
find ./ -type f ! -user www-data | |||