/ Published in: Bash
Sets the permissions for all folders to 755, and for all files 644.
Useful for SUPHP configurations which required this specific permission setup.
Expand |
Embed | Plain Text
find . -type d -print0 | xargs -0 chmod 0755 # For directories find . -type f -print0 | xargs -0 chmod 0644 # For files
Comments
Subscribe to comments
You need to login to post a comment.

Thank you,
Another suggestion:
chmod -R 755 *; find -type f -print0|xargs -0 chmod 644