CHMOD file only in subdirectory
Changing directory permissions on Linux type servers.
[FYI] Do this…
Start with directories if you are changing them for the web server first, this will change files too:
Then run it again to change files, with the different switch:
I recommend adding a recursive (-R) switch along with a verbose output (-v):
You may need to use super permissions to action this. Be warned, this can lock you out.