Linux - How to recursively chmod a folder? - Super User
superuser.com › questions › 1325221May 23, 2018 · -R, --recursive change files and directories recursively chmod -R 755 /path/to/directory would perform what you want. However… You don't usually want to 755 all files; these should be 644, as they often do not need to be executable. Hence, you could do find /path/to/directory -type d -exec chmod 755 {} \; to only change directory permissions. Use -type f and chmod 644 to apply the permissions to files.
linux - Chmod recursively - Stack Overflow
https://stackoverflow.com/questions/13377606chmod +x foo - set the eXecutable flag for foo. chmod go+x foo - same as above, but set the flag only for Group and Other users, don't touch the User (owner) permission. chmod go+X foo - same as above, but apply only to directories, don't touch files. chmod -R go+X foo - same as above, but do this Recursively for all subdirectories of foo. Share.