I have setup my flickr account to post to my blog. The post works correctly, but somehow the permissions on my files get reset to 666 instead of 775. I am using .php file extensions and my host requires the 775 permission to render the .php files. If that permission is not set properly then the browser displays a 500 error.
I have set the correct settings (I think) in mt-config.cgi. The two settings I have customized are show below:
HTMLperms 0777 HTMLMask 0002
I have no problem posting from the MT dashboard but when I try to post from Flickr the permissions are set wrong. The system changes the permissions for my index.php and archives.php file as well as sets wrong permissions for the static file for that particular post, and the date specific index.php file. What is also interesting is that the permissions for the previous post's static file are also changed.
Any idea what is going on here? My assumption is that all of the files that have wrong permissions are published (or republished) when Flickr sends a new post.
Reported on Movable Type 4.2

Why HTMLperms 0777 and not 0775?
Not sure exactly. Doesn't the HTMLMask make it 775?