Updating metadata script permission