If you set the themes folder 777 to allow for template tweaking, and made all files contained in that folder 777 as well, should u change the folder back to 755 after tweaking and individually change each file in the theme folder to 644?
Are there any files in the theme folder that should remain at a different permission level?