Accords-CMS/resetFilePermissions.sh

5 lines
261 B
Bash
Raw Permalink Normal View History

2022-01-01 12:12:34 +00:00
chown www-data:www-data -R * # Set Apache's www-data user as the owner
find . -type d -exec chmod 775 {} \; # Change folder permissions to rwxrwxr-x
find . -type f -exec chmod 664 {} \; # Change file permissions to rw-rw--r--
chmod +x resetFilePermissions.sh