reimplement getugroup so we don't have to parse groups(1)