I'm not sure what the problem is here. It looks like you have the permission problem taken care of (though a non-executable file in Unix should be 666, not 777) but now you're trying to update a...