change permissions linux folder and subfolders and files code example
Example 1: how to make all directory 775
find /opt/lampp/htdocs -type d -exec chmod 755 {} \;
find /opt/lampp/htdocs -type f -exec chmod 644 {} \;
Example 2: give full permission to folder and subfolders in linux
linux folder