Enable write protection to the file.