Default File and Folder Permissions

All FILES should have permissions set to 644
All DIRECTORIES (i.e. folders) should have permissions set to 755

And the default owner is normally owner:group should be www-data:www-data

to fix:

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

CISSP CISM PMP