set socket permission