Wednesday, February 18, 2015

Recursive chmod

Recursive chmod within folder:

For suphp you should have 644 permissions to all file and 755 permission for directories.
If not then you can modify it with below commands -
--------------------------------------------
find . -type f -exec chmod 0644 {} \;

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