Chmod directories to 755 and files to 644

After analyzing all the possible options, the following works great for me. I hope it works for you too... find /path/ -type d -print0 | xargs -0 chmod 0775 # For directories find /path/ -type f -print0 | xargs -0 chmod 0664 # For files

Advertisements