Clean up permissions.