haus wrote:
What if you setgid on the directory? I had to do that so that files created by my perl scripts would be in the www-data group, or else Apache couldn't read them.
chmod g+s <directory>
Any files and subdirectories would inherit the group ID of that directory. May be security implications to this, if it even helps at all.
Haus, thanks for your suggestion! I gave it a try, and actually was full of hope it would help, but unfortunately it didn't. The new file came up with -rw------- as usual.
So far the only remedy I could find is to put chmod command into crontab, which is nothing but a nasty hack
