Resetting File & Folder Permissions

Posted Almost 10 years ago. Visible to the public.

You might want to do this on media or elsewhere, handy cut-and-paste job:

find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;

Or with an xargs version (which should be faster):

find media -type d -print0 | xargs -0 chmod 0755
find media -type f -print0 | xargs -0 chmod 0644
Mike Whitby
Last edit
Almost 10 years ago
Posted by Mike Whitby to Magento (2014-06-04 13:29)