If nothing described in other answers helped, create the file again and copy the previous contents into it, and then grant execution rights