update token file access mode