linux change permissions folder and subfolders code example
Example 1: how to give permission recursively in linux
chmod -R u=rwx,go=rx /tofile_path
Example 2: find change permissions to subdirectories
sudo find /var/www/html -type d -exec chmod 755 {} \;
Example 3: give full permission to folder and subfolders in linux
linux folder