I have read about that a while ago. If you encounter that your chmod is getting overwritten by any page reload then you should check out the admin / components / i think its site/ there you'll find a file called controller.php. This file has 3 times a wird chmod 555 in it. No idea why, but it solved my issue.