change permissions for folder and subfolders linux code example
Example 1: change the permissions of a folder in linux
sudo chmod -R 757 <file>
Example 2: find change permissions to subdirectories
sudo find /var/www/html -type d -exec chmod 755 {} \;