primary group should be set as gid and not in groups parameter