Changing Wordpress Unix Permissions
I following is an easy way to ensure that Wordpress file permissions are correctly set using the find and xargs commands. I learned this technique from Dan Miessler’s excellent Find command primer.
Ensure each directory has the correct permissions set:
find . -type d -print0 | xargs -0 chmod 755
Ensure that each file has the correct permissions set :
find . -type f -print0 | xargs -0 chmod 644