I have a directory with name 'test' that has permissions 0777
.
I have a script to write files to the directory 'test'. However, these files have, by default, permission 0644
.
I need these files to inherit the folder permissions.
Can anyone please help me achieve this?