func getGroupForGid(gid int) (string, error) {
    if group, err := user.LookupGid(gid); err == nil {
        return group.Name, nil
    }