in reply to chmod changes on server when script runs

If you are writing to a new file, umask comes into play. You have a set of default permissions for new files, and the umask command manages that. Do a man umask on your system for details.

thor

  • Comment on Re: chmod changes on server when script runs