Update permissions of the file