exec plugin: Call `setgid' first so argitary groups can be configured.