keep the permission of hooks job file