fixed permission issue of shm.