Change files and directories in apache to 755 or 644 depending if file or directory

http://www.linuxquestions.org/questions/linux-general-1/chmod-all-files-644-and-files-755-a-542059/

find top/directory -type f -exec chmod 0644 ‘{}’ \;
find top/directory -type d -exec chmod 0755 ‘{}’ \;

Leave a Reply