in reply to Maintaining of config file

Your web server is probably starting up with a umask of 022. The simplest solution is to set the correct umask in the web server startup script if you have access to it. This may have other security implications at your site, so be careful.

Update: I did say something about using "chmod" in your script, but you say it doesn't work. That doesn't make sense. If you can create the file, you should be able to change the permissions on it since you own it.

Mike - mps@discomsys.com

"The two most common elements in the universe are hydrogen... and stupidity."
Harlan Ellison