To change permission of files and folders under public_html

To change permission of folders and files under the public_html of a domain at once we can use the following script.

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

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

Leave a comment