Set gid and initgroups