# WordPress - bulk fix of file and directory rights - shell

Source: https://www.hukot.net/community/en/tutorials/wordpress-bulk-fix-of-file-and-directory-rights-shell
Updated: 2020-10-29

Bulk file rights fix for WordPress, from a shell in the required directory:

```
# recursively finds directories and changes permissions for them

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

# recursively finds files and changes permissions for them

find ./ -type f -exec chmod 644 {} \;
```
