SSH- Change all files and folders permissions of a directory to 644/755

SSH- Change all files and folders permissions of a directory to 644/755
 
find * -type d -print0 | xargs -0 chmod 0755 # for directories
find . -type f -print0 | xargs -0 chmod 0644 # for files
For WordPress -
All files should be 664.
All folders should be 775.
wp-config.php should be 660.

No comments:

Post a Comment