This question already has an answer here:
I need to give permission to a directory in such a way that, the newly created files should inherit the same permissions as the directory.
- You may find a duplicate for this question, but it doesn't seems to be answered properly. So please update.