set socket permissions