GNU logs - #72012, boring messages


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72012: [PATCH] id: Warn if user in more groups than `id` can reliably print
Resent-From: Otto =?UTF-8?Q?Kek=C3=A4l=C3=A4inen?= <otto@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Tue, 09 Jul 2024 14:51:01 +0000
Resent-Message-ID: <handler.72012.B.17205366339316 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 72012
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: patch
To: 72012 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-coreutils@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17205366339316
          (code B ref -1); Tue, 09 Jul 2024 14:51:01 +0000
Received: (at submit) by debbugs.gnu.org; 9 Jul 2024 14:50:33 +0000
Received: from localhost ([127.0.0.1]:53884 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sRCAq-0002QA-Db
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 10:50:32 -0400
Received: from lists.gnu.org ([209.51.188.17]:52910)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <otto@HIDDEN>) id 1sR3M8-0007Fh-1W
 for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 01:25:36 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <otto@HIDDEN>)
 id 1sR3M1-00072p-Ef
 for bug-coreutils@HIDDEN; Tue, 09 Jul 2024 01:25:29 -0400
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <otto@HIDDEN>)
 id 1sR3Lw-0006t2-UE
 for bug-coreutils@HIDDEN; Tue, 09 Jul 2024 01:25:28 -0400
Received: from authenticated user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from <otto@HIDDEN>)
 id 1sR3Lh-008TMO-Uo
 for bug-coreutils@HIDDEN; Tue, 09 Jul 2024 05:25:10 +0000
Received: (nullmailer pid 1588970 invoked by uid 1001);
 Tue, 09 Jul 2024 05:25:06 -0000
From: Otto =?UTF-8?Q?Kek=C3=A4l=C3=A4inen?= <otto@HIDDEN>
Date: Mon, 8 Jul 2024 21:22:34 -0700
Message-Id: <1720502706.260332.1588969.nullmailer@XPS-13-9370>
X-Debian-User: otto
Received-SPF: none client-ip=2001:41b8:202:deb::311:108;
 envelope-from=otto@HIDDEN; helo=stravinsky.debian.org
X-Spam_score_int: -41
X-Spam_score: -4.2
X-Spam_bar: ----
X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3,
 SPF_HELO_NONE=0.001, SPF_NONE=0.001,
 UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Mailman-Approved-At: Tue, 09 Jul 2024 10:50:31 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

While rare, it is possible for a user to be a member in more groups than
what the system limit allows (on Linux typically NGROUPS_MAX=65536) and
if that is the case, running `id` or `id user` will not print all of
them. This is a minor bug, but easily fixable by emitting a warning if
it happens.
---
 src/id.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/id.c b/src/id.c
index 38d5517bd..c572b2d99 100644
--- a/src/id.c
+++ b/src/id.c
@@ -401,6 +401,13 @@ print_full_info (char const *username)
         ok &= false;
         return;
       }
+    else if (sysconf(_SC_NGROUPS_MAX) > 0 && n_groups > sysconf(_SC_NGROUPS_MAX))
+      {
+        fprintf (stderr,
+                 _("Warning: User '%s' may be member of more groups than "\
+                   "the system allows\n"),
+                 (username != NULL) ? username : "");
+      }
 
     if (n_groups > 0)
       fputs (_(" groups="), stdout);
-- 
2.25.1





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Otto =?UTF-8?Q?Kek=C3=A4l=C3=A4inen?= <otto@HIDDEN>
Subject: bug#72012: Acknowledgement ([PATCH] id: Warn if user in more
 groups than `id` can reliably print)
Message-ID: <handler.72012.B.17205366339316.ack <at> debbugs.gnu.org>
References: <1720502706.260332.1588969.nullmailer@XPS-13-9370>
X-Gnu-PR-Message: ack 72012
X-Gnu-PR-Package: coreutils
X-Gnu-PR-Keywords: patch
Reply-To: 72012 <at> debbugs.gnu.org
Date: Tue, 09 Jul 2024 14:51:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-coreutils@HIDDEN

If you wish to submit further information on this problem, please
send it to 72012 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
72012: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D72012
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72012: [PATCH] id: Warn if user in more groups than `id` can reliably print
Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Tue, 09 Jul 2024 15:36:02 +0000
Resent-Message-ID: <handler.72012.B72012.172053932424772 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72012
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: patch
To: Otto =?UTF-8?Q?Kek=C3=A4l=C3=A4inen?= <otto@HIDDEN>, 72012 <at> debbugs.gnu.org
Received: via spool by 72012-submit <at> debbugs.gnu.org id=B72012.172053932424772
          (code B ref 72012); Tue, 09 Jul 2024 15:36:02 +0000
Received: (at 72012) by debbugs.gnu.org; 9 Jul 2024 15:35:24 +0000
Received: from localhost ([127.0.0.1]:53909 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sRCsG-0006RT-2T
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 11:35:24 -0400
Received: from mail-wr1-f41.google.com ([209.85.221.41]:55774)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pixelbeat@HIDDEN>) id 1sRCsD-0006RF-OR
 for 72012 <at> debbugs.gnu.org; Tue, 09 Jul 2024 11:35:22 -0400
Received: by mail-wr1-f41.google.com with SMTP id
 ffacd0b85a97d-367a23462e6so3258236f8f.3
 for <72012 <at> debbugs.gnu.org>; Tue, 09 Jul 2024 08:35:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1720539250; x=1721144050; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:to:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date:message-id:reply-to;
 bh=rXpx6ctqsrh+WFeJobvp4ili5ts9yorwu5LKbqomWiE=;
 b=Jo7Kb2CS9Pr8gahA9jwvZrEFlT/Kn3prwOL9jiI73QEhUjexx4q1B2Gzklksx1UC7I
 7Bau3q+8iSMDLGkdAAjYa+rY+jzm5s3wV9sd7KIrDTUrU6nZDNaxoy+oYAxPKYOoARw1
 aZPOfgUljlndUaataJ7leinH+nrFic6JqkXq/cGb7MOaYDB2RKSQatDiHl6IgxU4S082
 K4Gu2aTfFDn724P6zOhSX2lF9rD85HN8MxZfnwqLPiDbj45feFxRxJxfEMIcgLkxbWH2
 4DDvEfKjB4OaniC6Qherzr9lN06Uv7O3pKLz3iecSv5maYbVp/padiATign0frZwomnV
 VjYQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1720539250; x=1721144050;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:to:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=rXpx6ctqsrh+WFeJobvp4ili5ts9yorwu5LKbqomWiE=;
 b=B2H7caQMUPKFZ+9j3pHlk2stujEWWvThUAdtU8WTWFXu66g2hw/7Xv8q5t3w88vpMT
 lQGqrQ1Y2rsJEqGaPPNkR2jt5Hifiln+0EdKLKGN0njQBTmOO6s99vKEpOwmhBE6YXV2
 mJ7hnmlnDcHSwO+tMTYCS1Efiw3F78o57abaxOMaVDcl5dNmmrpENFV3AA2Inw906DED
 /mQRif99q4yRL0mQWQlQTouTUpWtOd1RNvSQdOa1i8kWLcjHRTwh+S66PgXE5IqfxqDG
 aiwTZTunqIRx5RGbIHpVX9vhZ1zUk7gTcNxeulTamlcq8PCYnGF4AV/L5pg+D3Wp2G45
 LgGw==
X-Forwarded-Encrypted: i=1;
 AJvYcCXEtfHrmhjbCzhFaQVhsuc0DgoHE+Vsk5rODZKjkAn+RpFKbs3qE1pYRei4zFgC+jtKg+EpFcUAsOq81Z8rnFZpPIsIvYk=
X-Gm-Message-State: AOJu0Yzjodgza6lYLTiKmtjk9z7EgZJIITdpEkbg7wFaLtUm80ozhtuc
 MeGfbuY1zoRigzN4+bbzmIoHxdaKbhMuBf7a6chSRhmn1VR5ASyATS2JAg==
X-Google-Smtp-Source: AGHT+IES4lGCqZ3jPhwaQ/4kf6jbhAb0NE6SotigQgg2QX4MzwDkes+45PM6MyaOIDV2sJSxODnXBw==
X-Received: by 2002:a05:6000:156a:b0:366:d5ea:6098 with SMTP id
 ffacd0b85a97d-367cea46b19mr2406755f8f.3.1720539250026; 
 Tue, 09 Jul 2024 08:34:10 -0700 (PDT)
Received: from [192.168.1.21]
 (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146])
 by smtp.googlemail.com with ESMTPSA id
 ffacd0b85a97d-367cdfa067dsm2885928f8f.78.2024.07.09.08.34.09
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Tue, 09 Jul 2024 08:34:09 -0700 (PDT)
Message-ID: <ce3d7acc-b390-4008-8e3f-db96e8e3113f@HIDDEN>
Date: Tue, 9 Jul 2024 16:34:07 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird Beta
References: <1720502706.260332.1588969.nullmailer@XPS-13-9370>
Content-Language: en-US
From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
In-Reply-To: <1720502706.260332.1588969.nullmailer@XPS-13-9370>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.2 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

On 09/07/2024 05:22, Otto Kekäläinen wrote:
> While rare, it is possible for a user to be a member in more groups than
> what the system limit allows (on Linux typically NGROUPS_MAX=65536) and
> if that is the case, running `id` or `id user` will not print all of
> them. This is a minor bug, but easily fixable by emitting a warning if
> it happens.
> ---
>   src/id.c | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> diff --git a/src/id.c b/src/id.c
> index 38d5517bd..c572b2d99 100644
> --- a/src/id.c
> +++ b/src/id.c
> @@ -401,6 +401,13 @@ print_full_info (char const *username)
>           ok &= false;
>           return;
>         }
> +    else if (sysconf(_SC_NGROUPS_MAX) > 0 && n_groups > sysconf(_SC_NGROUPS_MAX))
> +      {
> +        fprintf (stderr,
> +                 _("Warning: User '%s' may be member of more groups than "\
> +                   "the system allows\n"),
> +                 (username != NULL) ? username : "");
> +      }
>   
>       if (n_groups > 0)
>         fputs (_(" groups="), stdout);

I'm a bit confused with this patch.
If the n_groups is larger than NGROUPS_MAX what consequence will it have?
I.e. is there any point to id(1) warning about this edge case?
id will be able to show all of the n_groups in this case right?
I interpret NGROUPS_MAX as a static limit(ation),
which more dynamic interfaces (like getgrouplist) are not constrained to.

cheers,
Pádraig




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72012: [PATCH] id: Warn if user in more groups than `id` can reliably print
Resent-From: Otto =?UTF-8?Q?Kek=C3=A4l=C3=A4inen?= <otto@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Tue, 09 Jul 2024 20:17:02 +0000
Resent-Message-ID: <handler.72012.B72012.172055617820476 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72012
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: patch
To: P@HIDDEN
Cc: 72012 <at> debbugs.gnu.org
Received: via spool by 72012-submit <at> debbugs.gnu.org id=B72012.172055617820476
          (code B ref 72012); Tue, 09 Jul 2024 20:17:02 +0000
Received: (at 72012) by debbugs.gnu.org; 9 Jul 2024 20:16:18 +0000
Received: from localhost ([127.0.0.1]:54183 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sRHG6-0005KC-Ha
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 16:16:18 -0400
Received: from relay3-d.mail.gandi.net ([217.70.183.195]:59391)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <otto@HIDDEN>) id 1sRHG2-0005Jg-Bu
 for 72012 <at> debbugs.gnu.org; Tue, 09 Jul 2024 16:16:17 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id 578B460004
 for <72012 <at> debbugs.gnu.org>; Tue,  9 Jul 2024 20:16:01 +0000 (UTC)
Received: by mail-ej1-f45.google.com with SMTP id
 a640c23a62f3a-a77c9d3e593so497475566b.0
 for <72012 <at> debbugs.gnu.org>; Tue, 09 Jul 2024 13:16:01 -0700 (PDT)
X-Gm-Message-State: AOJu0YzC/bRq1bWeRzjlU9VAm0UKOtSDIGXqW7Sf/rEBKRQsT1oIy3oa
 hw9hjJ7uL1cNYYsSEEU1U/X+SzPWkx9nFZ81yg/5dDUfVesVERNCe21U5LsnTw86/SVpyMCDl5Y
 62rkVq7tctw8KfGrYK/KzgSAPCys=
X-Google-Smtp-Source: AGHT+IHQB3CX5xDtMF+tZCMHVEs3rMhN1mRBjEic+fgd909iOBrprnAdpmhe79boMhmLHXMLsOo1V4/P1JVL6ILmgIg=
X-Received: by 2002:a17:907:7da6:b0:a72:750d:ab08 with SMTP id
 a640c23a62f3a-a780b6881e1mr255634366b.14.1720556160863; Tue, 09 Jul 2024
 13:16:00 -0700 (PDT)
MIME-Version: 1.0
References: <1720502706.260332.1588969.nullmailer@XPS-13-9370>
 <ce3d7acc-b390-4008-8e3f-db96e8e3113f@HIDDEN>
In-Reply-To: <ce3d7acc-b390-4008-8e3f-db96e8e3113f@HIDDEN>
From: Otto =?UTF-8?Q?Kek=C3=A4l=C3=A4inen?= <otto@HIDDEN>
Date: Tue, 9 Jul 2024 13:15:49 -0700
X-Gmail-Original-Message-ID: <CAOU6tAASsbSSb6mH=sDhod2G1MGU3pmrKouS3ZMSoUORST+G5A@HIDDEN>
Message-ID: <CAOU6tAASsbSSb6mH=sDhod2G1MGU3pmrKouS3ZMSoUORST+G5A@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000c8df07061cd6323c"
X-GND-Sasl: outgoing@HIDDEN
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--000000000000c8df07061cd6323c
Content-Type: text/plain; charset="UTF-8"

Hi!

The point is just to emit a warning when this happens. Sure it is rare but
the fix is pretty safe to apply.

--000000000000c8df07061cd6323c
Content-Type: text/html; charset="UTF-8"

<div dir="auto">Hi!<div dir="auto"><br></div><div dir="auto">The point is just to emit a warning when this happens. Sure it is rare but the fix is pretty safe to apply.</div></div>

--000000000000c8df07061cd6323c--




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72012: [PATCH] id: Warn if user in more groups than `id` can reliably print
Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Tue, 09 Jul 2024 22:38:02 +0000
Resent-Message-ID: <handler.72012.B72012.17205646241423 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72012
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: patch
To: Otto =?UTF-8?Q?Kek=C3=A4l=C3=A4inen?= <otto@HIDDEN>
Cc: 72012 <at> debbugs.gnu.org
Received: via spool by 72012-submit <at> debbugs.gnu.org id=B72012.17205646241423
          (code B ref 72012); Tue, 09 Jul 2024 22:38:02 +0000
Received: (at 72012) by debbugs.gnu.org; 9 Jul 2024 22:37:04 +0000
Received: from localhost ([127.0.0.1]:54264 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sRJSK-0000Mt-19
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 18:37:04 -0400
Received: from mail-wr1-f51.google.com ([209.85.221.51]:45308)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pixelbeat@HIDDEN>) id 1sRJSH-0000MO-Td
 for 72012 <at> debbugs.gnu.org; Tue, 09 Jul 2024 18:37:02 -0400
Received: by mail-wr1-f51.google.com with SMTP id
 ffacd0b85a97d-367a464e200so3018775f8f.2
 for <72012 <at> debbugs.gnu.org>; Tue, 09 Jul 2024 15:36:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1720564550; x=1721169350; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date:message-id:reply-to;
 bh=+YGsX0BcUg7xNW0wWOpq2Eq1RyQMVYL/CdsbhiPvNqQ=;
 b=DAdkH/I7QwjMoSa3C49PHXmHs+F8kdh/2pKIKLStqkTEMjqftmCI7sSQeELscMDHQ+
 Hn77G7HwGAlqDaSoF+qMc9Cjj4ujKkLPXClOe9m5vkS6Rsy/2f4QNKclgYZt/EiD2nHW
 KForGQnrdhFzV2Eaew/nSRsFdhk/MA/gAGFSfEfdfjygB9JZ1cPu/lEILjI+OHXoq78d
 tz9qeKT4mKU6rzaBLUtF3Ff9tqRcadGw3QvdJLdtA8ANNAyspKrhWZrlFlWDVA96rgkv
 noKrtQ2dvAuv6EnJbHj0dWQmfTbImkC87tqLaJkI7Irwappwdw0p0pdocDKyELSjezjT
 XhlQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1720564550; x=1721169350;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=+YGsX0BcUg7xNW0wWOpq2Eq1RyQMVYL/CdsbhiPvNqQ=;
 b=PAK7YbQKC2iq5froWVxxSrbNqZ+p1nWZMsxIagC2OOAlYBiLdixWocUW8fuiYup5FI
 pd7OodfKR+ufyVRid34BFN5xopetCC1JvqYe1+Cwm4Z47564nKTm61p+11cE8+sdK5QC
 XdxYEPaSOWJeUJN93IVMQns0nuHJu2YDgyvxmB5OPcSgGSl+2pZ5bLfCJyzjyOv29MGG
 1079AGtbpSV1+VquH6GVtV2y9ECz9UKPeA5eSoRhxvctU/K55+BzlycWAot2RdOKXfZM
 lTucDYjjbZsAFxs59EzDmsypSL98hdTZW/cfhz4RYOs4ayVui+DFgXy2eY0IhreDOmZ+
 wafw==
X-Gm-Message-State: AOJu0Yyw50mMvpCGNGUypGpTGU1S2FtwLUgZR+Cvf+WCsP/cWXQDbMx6
 oR2hGLR1+gn3BJB6pUJlxxTElZeEFmeYPr6k7xbzHGqbYo5sgNQ0J/MM2A==
X-Google-Smtp-Source: AGHT+IF+SkNNiZk0nenbz04QkDlHU2PMJdaFEEdF0hZpc52v0LbD/ItKQ8yihS0afTV0CGjOrNzGUg==
X-Received: by 2002:a5d:5592:0:b0:367:992d:db33 with SMTP id
 ffacd0b85a97d-367cea6bfbdmr2290987f8f.19.1720564550217; 
 Tue, 09 Jul 2024 15:35:50 -0700 (PDT)
Received: from [192.168.1.21]
 (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146])
 by smtp.googlemail.com with ESMTPSA id
 ffacd0b85a97d-367cdfa061esm3599359f8f.70.2024.07.09.15.35.49
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Tue, 09 Jul 2024 15:35:49 -0700 (PDT)
Message-ID: <722eef73-3602-4a38-8a67-0f086b98fc84@HIDDEN>
Date: Tue, 9 Jul 2024 23:35:49 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird Beta
References: <1720502706.260332.1588969.nullmailer@XPS-13-9370>
 <ce3d7acc-b390-4008-8e3f-db96e8e3113f@HIDDEN>
 <CAOU6tAASsbSSb6mH=sDhod2G1MGU3pmrKouS3ZMSoUORST+G5A@HIDDEN>
Content-Language: en-US
From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
In-Reply-To: <CAOU6tAASsbSSb6mH=sDhod2G1MGU3pmrKouS3ZMSoUORST+G5A@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.2 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

On 09/07/2024 21:15, Otto Kekäläinen wrote:
> Hi!
> 
> The point is just to emit a warning when this happens. Sure it is rare but the fix is pretty safe to apply.

OK so id(1) will always show all groups it knows about.
Then the warning message might be along the lines of:

   "warning: User '%s' is a member of more groups than the current system limit"

For reference I see a summary of limits of various systems at:
https://www.j3e.de/ngroups.html

cheers,
Pádraig




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72012: [PATCH] id: Warn if user in more groups than `id` can reliably print
Resent-From: Paul Eggert <eggert@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Tue, 09 Jul 2024 23:32:01 +0000
Resent-Message-ID: <handler.72012.B.17205678956623 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72012
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: patch
To: 72012 <at> debbugs.gnu.org
Cc: Otto =?UTF-8?Q?Kek=C3=A4l=C3=A4inen?= <otto@HIDDEN>
X-Debbugs-Original-To: bug-coreutils@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17205678956623
          (code B ref -1); Tue, 09 Jul 2024 23:32:01 +0000
Received: (at submit) by debbugs.gnu.org; 9 Jul 2024 23:31:35 +0000
Received: from localhost ([127.0.0.1]:54287 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sRKJ5-0001il-23
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 19:31:35 -0400
Received: from lists.gnu.org ([209.51.188.17]:38132)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1sRKJ3-0001id-9h
 for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 19:31:33 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eggert@HIDDEN>)
 id 1sRKIw-0006P3-6o
 for bug-coreutils@HIDDEN; Tue, 09 Jul 2024 19:31:26 -0400
Received: from mail.cs.ucla.edu ([131.179.128.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eggert@HIDDEN>)
 id 1sRKIt-0006KA-Ba
 for bug-coreutils@HIDDEN; Tue, 09 Jul 2024 19:31:24 -0400
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id 0CF8F3C011BDE;
 Tue,  9 Jul 2024 16:31:20 -0700 (PDT)
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP
 id YQZvgFh5j4F8; Tue,  9 Jul 2024 16:31:19 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id 8287A3C00FABA;
 Tue,  9 Jul 2024 16:31:19 -0700 (PDT)
DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 8287A3C00FABA
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
 s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1720567879;
 bh=7jbi3EQtKxNGdC8K/UeWdSrB8hv5NslQC3Gznh3/7jI=;
 h=Message-ID:Date:MIME-Version:To:From;
 b=JVAiY1xVUUaUn2QMUuhowcMKWBDPis2Y8GtuKx2vte4XjGIwDh7hTpqqmcmf9mi+o
 RnQr+Xq93W7/Vw1VaBdxJlL+yeIUUUSoqzIHoL3zHR+W6zoTPxwEgHBRs6l+2xaGMz
 t1RhlHCiLtnoFjw6xqoDth34qUuL49UzS32tM9+pIQrFX42l6NwojnWAdGzFRNh06F
 B/cd/zG/6yuxl4cgZNEGKPTRkxojnmMWU1v0Ej4oABdRshgXACAQgGSzQy4fiSv52l
 hY+uEHbk9goJpRnYQ79WxEEKhIsvZzfMWYgMI2LcdSoMpFq9o023clw50tcHtkhj2S
 /EgMdhPmw9Kpw==
X-Virus-Scanned: amavis at mail.cs.ucla.edu
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP
 id 6SqX-pMBUing; Tue,  9 Jul 2024 16:31:19 -0700 (PDT)
Received: from [192.168.1.103]
 (i15-les02-ntr-176-181-187-105.sfr.lns.abo.bbox.fr [176.181.187.105])
 by mail.cs.ucla.edu (Postfix) with ESMTPSA id C9ED73C011BDE;
 Tue,  9 Jul 2024 16:31:18 -0700 (PDT)
Message-ID: <237c7d15-fc35-48da-b47e-a5a6c15c2b1e@HIDDEN>
Date: Wed, 10 Jul 2024 01:31:16 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <1720502706.260332.1588969.nullmailer@XPS-13-9370>
 <ce3d7acc-b390-4008-8e3f-db96e8e3113f@HIDDEN>
 <CAOU6tAASsbSSb6mH=sDhod2G1MGU3pmrKouS3ZMSoUORST+G5A@HIDDEN>
 <722eef73-3602-4a38-8a67-0f086b98fc84@HIDDEN>
Content-Language: en-US
From: Paul Eggert <eggert@HIDDEN>
In-Reply-To: <722eef73-3602-4a38-8a67-0f086b98fc84@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@HIDDEN;
 helo=mail.cs.ucla.edu
X-Spam_score_int: -19
X-Spam_score: -2.0
X-Spam_bar: --
X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

On 7/10/24 00:35, P=C3=A1draig Brady wrote:
> OK so id(1) will always show all groups it knows about.
> Then the warning message might be along the lines of:
>=20
>  =C2=A0 "warning: User '%s' is a member of more groups than the current=
=20
> system limit"

I also am not seeing the point of the proposed diagnostic. I daresay=20
most users would be more annoyed than usefully warned by the diagnostic;=20
I know I would.

The rare user concerned about being in "too many" groups can run=20
'getconf NGROUPS_MAX' and 'id -G | wc -w' and compare.




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72012: [PATCH] id: Warn if user in more groups than `id` can reliably print
Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Wed, 10 Jul 2024 08:19:02 +0000
Resent-Message-ID: <handler.72012.B72012.17205995099114 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72012
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: patch
To: Paul Eggert <eggert@HIDDEN>, 72012 <at> debbugs.gnu.org
Cc: Otto =?UTF-8?Q?Kek=C3=A4l=C3=A4inen?= <otto@HIDDEN>
Received: via spool by 72012-submit <at> debbugs.gnu.org id=B72012.17205995099114
          (code B ref 72012); Wed, 10 Jul 2024 08:19:02 +0000
Received: (at 72012) by debbugs.gnu.org; 10 Jul 2024 08:18:29 +0000
Received: from localhost ([127.0.0.1]:54810 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sRSWz-0002Mv-9t
	for submit <at> debbugs.gnu.org; Wed, 10 Jul 2024 04:18:29 -0400
Received: from mail-lf1-f46.google.com ([209.85.167.46]:51484)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pixelbeat@HIDDEN>)
 id 1sRSWy-0002Mk-2M; Wed, 10 Jul 2024 04:18:28 -0400
Received: by mail-lf1-f46.google.com with SMTP id
 2adb3069b0e04-52ea33671ffso5567824e87.3; 
 Wed, 10 Jul 2024 01:18:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1720599441; x=1721204241; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date:message-id:reply-to;
 bh=HtAlXe9ZBQyBzUrftjCAFLZX3P9qWQhOJdQd5EkDWXU=;
 b=L7wR3uC0ZjRKprbOnvgdcRAyXGYbKkrdbxiagtMPGb25EZITUYiAItm0MfofNRogiK
 NtmZnwBux39XFhUSdjPjFD8VZHxzFl7z2wVh0vyfd/4FvFj8z9f4/km5FHiLZAWKqJKi
 woXncXJCynS78ACjbpF1u3CDBjFSEFDIj6SrEe/SabELJhLYEJzdFESJc7yNA4grCEhE
 MdgH7187UwO/PdZOffjcVoMHut0fYkYH78/dse49x1Vs3j6AvV5tocbFPnavnKzIlVHa
 EgkAtSn7I1ijaOWTP3h942IycGXzm1lquUhOanF+K/OC3tFBzLaz6F3L/limvOVveG5J
 fUXw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1720599441; x=1721204241;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=HtAlXe9ZBQyBzUrftjCAFLZX3P9qWQhOJdQd5EkDWXU=;
 b=M5SAedEqGwQ83atle/KtSUNtF6TlPBCBeZ3xgr9WG8Wiqo3EpIMjLqRS4j3eW6eYMw
 z9UGmo2IQu4gKgNwDYNYHTwtxzd8DabOukCWy4UOnoobXkRGh0aaoqf3MqqvteWpNb8w
 uAmvbDux6aoSyw8YJclXtyJjtPgh1LEHW5EQCuzZMRIocyohOfhMQAMsziojkLEcur9p
 lYdH8XjwmlZe/Tz3lyg5NOjG/Cntz2QXkNTEYTdDtgIXrshRJr98Q9xtalHVz2/8HOQf
 YhdcYPdsp3flqFmvjYgn5l9jY9u+ncfJiIfWAzZ0erTNmXMyurGJEmnL9R5CH9TGBpl6
 biZQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCXs3AJJgn+f4m1npPR7Hu7/NslXZBIm8YqgBDamMEXAq9CkMzd+KELeKCZHIk0LYyhsXc0kA3kZoGwEKjjpCfrPBP/h4pSJlWIi+zr0xFTBUSRtQB0Yil6pCLzhRJ7M
X-Gm-Message-State: AOJu0Yx8fd5fQ8gwe1h3Cw655BPPOyM4W/S3ifLxYHZFaL/lySTkVqWW
 Ih1gi3QQ2L8zVx3+6QG3f4yvktb7cd4z+mhOwyfxLuCWIkaqEnxQ
X-Google-Smtp-Source: AGHT+IHb3xTlLkqXOI9+Q1/w0uy+vNYc/JjmLxVeVrwNzEsMvtfP/fCPCzuw9IrOGrefJC2LBkY58Q==
X-Received: by 2002:a19:3816:0:b0:52b:de5b:1b30 with SMTP id
 2adb3069b0e04-52eb99d32f3mr2417768e87.44.1720599440503; 
 Wed, 10 Jul 2024 01:17:20 -0700 (PDT)
Received: from [192.168.1.21]
 (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146])
 by smtp.googlemail.com with ESMTPSA id
 ffacd0b85a97d-367cdfa0694sm4639177f8f.66.2024.07.10.01.17.19
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 10 Jul 2024 01:17:19 -0700 (PDT)
Message-ID: <73924406-76ee-4e80-9ae7-d87d10683896@HIDDEN>
Date: Wed, 10 Jul 2024 09:17:18 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird Beta
References: <1720502706.260332.1588969.nullmailer@XPS-13-9370>
 <ce3d7acc-b390-4008-8e3f-db96e8e3113f@HIDDEN>
 <CAOU6tAASsbSSb6mH=sDhod2G1MGU3pmrKouS3ZMSoUORST+G5A@HIDDEN>
 <722eef73-3602-4a38-8a67-0f086b98fc84@HIDDEN>
 <237c7d15-fc35-48da-b47e-a5a6c15c2b1e@HIDDEN>
Content-Language: en-US
From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
In-Reply-To: <237c7d15-fc35-48da-b47e-a5a6c15c2b1e@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.2 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

tag 72012 notabug
close 72012
stop

On 10/07/2024 00:31, Paul Eggert wrote:
> On 7/10/24 00:35, Pádraig Brady wrote:
>> OK so id(1) will always show all groups it knows about.
>> Then the warning message might be along the lines of:
>>
>>     "warning: User '%s' is a member of more groups than the current
>> system limit"
> 
> I also am not seeing the point of the proposed diagnostic. I daresay
> most users would be more annoyed than usefully warned by the diagnostic;
> I know I would.
> 
> The rare user concerned about being in "too many" groups can run
> 'getconf NGROUPS_MAX' and 'id -G | wc -w' and compare.

Right.
Given that id can display all the groups,
it's not its responsibility to display potential limits from elsewhere.

cheers,
Pádraig




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 10 Jul 2024 08:18:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 10 04:18:30 2024
Received: from localhost ([127.0.0.1]:54812 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sRSWz-0002Mx-KJ
	for submit <at> debbugs.gnu.org; Wed, 10 Jul 2024 04:18:29 -0400
Received: from mail-lf1-f46.google.com ([209.85.167.46]:51484)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pixelbeat@HIDDEN>)
 id 1sRSWy-0002Mk-2M; Wed, 10 Jul 2024 04:18:28 -0400
Received: by mail-lf1-f46.google.com with SMTP id
 2adb3069b0e04-52ea33671ffso5567824e87.3; 
 Wed, 10 Jul 2024 01:18:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1720599441; x=1721204241; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date:message-id:reply-to;
 bh=HtAlXe9ZBQyBzUrftjCAFLZX3P9qWQhOJdQd5EkDWXU=;
 b=L7wR3uC0ZjRKprbOnvgdcRAyXGYbKkrdbxiagtMPGb25EZITUYiAItm0MfofNRogiK
 NtmZnwBux39XFhUSdjPjFD8VZHxzFl7z2wVh0vyfd/4FvFj8z9f4/km5FHiLZAWKqJKi
 woXncXJCynS78ACjbpF1u3CDBjFSEFDIj6SrEe/SabELJhLYEJzdFESJc7yNA4grCEhE
 MdgH7187UwO/PdZOffjcVoMHut0fYkYH78/dse49x1Vs3j6AvV5tocbFPnavnKzIlVHa
 EgkAtSn7I1ijaOWTP3h942IycGXzm1lquUhOanF+K/OC3tFBzLaz6F3L/limvOVveG5J
 fUXw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1720599441; x=1721204241;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=HtAlXe9ZBQyBzUrftjCAFLZX3P9qWQhOJdQd5EkDWXU=;
 b=M5SAedEqGwQ83atle/KtSUNtF6TlPBCBeZ3xgr9WG8Wiqo3EpIMjLqRS4j3eW6eYMw
 z9UGmo2IQu4gKgNwDYNYHTwtxzd8DabOukCWy4UOnoobXkRGh0aaoqf3MqqvteWpNb8w
 uAmvbDux6aoSyw8YJclXtyJjtPgh1LEHW5EQCuzZMRIocyohOfhMQAMsziojkLEcur9p
 lYdH8XjwmlZe/Tz3lyg5NOjG/Cntz2QXkNTEYTdDtgIXrshRJr98Q9xtalHVz2/8HOQf
 YhdcYPdsp3flqFmvjYgn5l9jY9u+ncfJiIfWAzZ0erTNmXMyurGJEmnL9R5CH9TGBpl6
 biZQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCXs3AJJgn+f4m1npPR7Hu7/NslXZBIm8YqgBDamMEXAq9CkMzd+KELeKCZHIk0LYyhsXc0kA3kZoGwEKjjpCfrPBP/h4pSJlWIi+zr0xFTBUSRtQB0Yil6pCLzhRJ7M
X-Gm-Message-State: AOJu0Yx8fd5fQ8gwe1h3Cw655BPPOyM4W/S3ifLxYHZFaL/lySTkVqWW
 Ih1gi3QQ2L8zVx3+6QG3f4yvktb7cd4z+mhOwyfxLuCWIkaqEnxQ
X-Google-Smtp-Source: AGHT+IHb3xTlLkqXOI9+Q1/w0uy+vNYc/JjmLxVeVrwNzEsMvtfP/fCPCzuw9IrOGrefJC2LBkY58Q==
X-Received: by 2002:a19:3816:0:b0:52b:de5b:1b30 with SMTP id
 2adb3069b0e04-52eb99d32f3mr2417768e87.44.1720599440503; 
 Wed, 10 Jul 2024 01:17:20 -0700 (PDT)
Received: from [192.168.1.21]
 (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146])
 by smtp.googlemail.com with ESMTPSA id
 ffacd0b85a97d-367cdfa0694sm4639177f8f.66.2024.07.10.01.17.19
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 10 Jul 2024 01:17:19 -0700 (PDT)
Message-ID: <73924406-76ee-4e80-9ae7-d87d10683896@HIDDEN>
Date: Wed, 10 Jul 2024 09:17:18 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird Beta
Subject: Re: bug#72012: [PATCH] id: Warn if user in more groups than `id` can
 reliably print
To: Paul Eggert <eggert@HIDDEN>, 72012 <at> debbugs.gnu.org
References: <1720502706.260332.1588969.nullmailer@XPS-13-9370>
 <ce3d7acc-b390-4008-8e3f-db96e8e3113f@HIDDEN>
 <CAOU6tAASsbSSb6mH=sDhod2G1MGU3pmrKouS3ZMSoUORST+G5A@HIDDEN>
 <722eef73-3602-4a38-8a67-0f086b98fc84@HIDDEN>
 <237c7d15-fc35-48da-b47e-a5a6c15c2b1e@HIDDEN>
Content-Language: en-US
From: =?UTF-8?Q?P=C3=A1draig_Brady?= <P@HIDDEN>
In-Reply-To: <237c7d15-fc35-48da-b47e-a5a6c15c2b1e@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: control
Cc: =?UTF-8?B?T3R0byBLZWvDpGzDpGluZW4=?= <otto@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

tag 72012 notabug
close 72012
stop

On 10/07/2024 00:31, Paul Eggert wrote:
> On 7/10/24 00:35, Pádraig Brady wrote:
>> OK so id(1) will always show all groups it knows about.
>> Then the warning message might be along the lines of:
>>
>>     "warning: User '%s' is a member of more groups than the current
>> system limit"
> 
> I also am not seeing the point of the proposed diagnostic. I daresay
> most users would be more annoyed than usefully warned by the diagnostic;
> I know I would.
> 
> The rare user concerned about being in "too many" groups can run
> 'getconf NGROUPS_MAX' and 'id -G | wc -w' and compare.

Right.
Given that id can display all the groups,
it's not its responsibility to display potential limits from elsewhere.

cheers,
Pádraig




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 10 Jul 2024 08:18:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 10 04:18:30 2024
Received: from localhost ([127.0.0.1]:54812 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sRSWz-0002Mx-KJ
	for submit <at> debbugs.gnu.org; Wed, 10 Jul 2024 04:18:29 -0400
Received: from mail-lf1-f46.google.com ([209.85.167.46]:51484)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pixelbeat@HIDDEN>)
 id 1sRSWy-0002Mk-2M; Wed, 10 Jul 2024 04:18:28 -0400
Received: by mail-lf1-f46.google.com with SMTP id
 2adb3069b0e04-52ea33671ffso5567824e87.3; 
 Wed, 10 Jul 2024 01:18:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1720599441; x=1721204241; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date:message-id:reply-to;
 bh=HtAlXe9ZBQyBzUrftjCAFLZX3P9qWQhOJdQd5EkDWXU=;
 b=L7wR3uC0ZjRKprbOnvgdcRAyXGYbKkrdbxiagtMPGb25EZITUYiAItm0MfofNRogiK
 NtmZnwBux39XFhUSdjPjFD8VZHxzFl7z2wVh0vyfd/4FvFj8z9f4/km5FHiLZAWKqJKi
 woXncXJCynS78ACjbpF1u3CDBjFSEFDIj6SrEe/SabELJhLYEJzdFESJc7yNA4grCEhE
 MdgH7187UwO/PdZOffjcVoMHut0fYkYH78/dse49x1Vs3j6AvV5tocbFPnavnKzIlVHa
 EgkAtSn7I1ijaOWTP3h942IycGXzm1lquUhOanF+K/OC3tFBzLaz6F3L/limvOVveG5J
 fUXw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1720599441; x=1721204241;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=HtAlXe9ZBQyBzUrftjCAFLZX3P9qWQhOJdQd5EkDWXU=;
 b=M5SAedEqGwQ83atle/KtSUNtF6TlPBCBeZ3xgr9WG8Wiqo3EpIMjLqRS4j3eW6eYMw
 z9UGmo2IQu4gKgNwDYNYHTwtxzd8DabOukCWy4UOnoobXkRGh0aaoqf3MqqvteWpNb8w
 uAmvbDux6aoSyw8YJclXtyJjtPgh1LEHW5EQCuzZMRIocyohOfhMQAMsziojkLEcur9p
 lYdH8XjwmlZe/Tz3lyg5NOjG/Cntz2QXkNTEYTdDtgIXrshRJr98Q9xtalHVz2/8HOQf
 YhdcYPdsp3flqFmvjYgn5l9jY9u+ncfJiIfWAzZ0erTNmXMyurGJEmnL9R5CH9TGBpl6
 biZQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCXs3AJJgn+f4m1npPR7Hu7/NslXZBIm8YqgBDamMEXAq9CkMzd+KELeKCZHIk0LYyhsXc0kA3kZoGwEKjjpCfrPBP/h4pSJlWIi+zr0xFTBUSRtQB0Yil6pCLzhRJ7M
X-Gm-Message-State: AOJu0Yx8fd5fQ8gwe1h3Cw655BPPOyM4W/S3ifLxYHZFaL/lySTkVqWW
 Ih1gi3QQ2L8zVx3+6QG3f4yvktb7cd4z+mhOwyfxLuCWIkaqEnxQ
X-Google-Smtp-Source: AGHT+IHb3xTlLkqXOI9+Q1/w0uy+vNYc/JjmLxVeVrwNzEsMvtfP/fCPCzuw9IrOGrefJC2LBkY58Q==
X-Received: by 2002:a19:3816:0:b0:52b:de5b:1b30 with SMTP id
 2adb3069b0e04-52eb99d32f3mr2417768e87.44.1720599440503; 
 Wed, 10 Jul 2024 01:17:20 -0700 (PDT)
Received: from [192.168.1.21]
 (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146])
 by smtp.googlemail.com with ESMTPSA id
 ffacd0b85a97d-367cdfa0694sm4639177f8f.66.2024.07.10.01.17.19
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 10 Jul 2024 01:17:19 -0700 (PDT)
Message-ID: <73924406-76ee-4e80-9ae7-d87d10683896@HIDDEN>
Date: Wed, 10 Jul 2024 09:17:18 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird Beta
Subject: Re: bug#72012: [PATCH] id: Warn if user in more groups than `id` can
 reliably print
To: Paul Eggert <eggert@HIDDEN>, 72012 <at> debbugs.gnu.org
References: <1720502706.260332.1588969.nullmailer@XPS-13-9370>
 <ce3d7acc-b390-4008-8e3f-db96e8e3113f@HIDDEN>
 <CAOU6tAASsbSSb6mH=sDhod2G1MGU3pmrKouS3ZMSoUORST+G5A@HIDDEN>
 <722eef73-3602-4a38-8a67-0f086b98fc84@HIDDEN>
 <237c7d15-fc35-48da-b47e-a5a6c15c2b1e@HIDDEN>
Content-Language: en-US
From: =?UTF-8?Q?P=C3=A1draig_Brady?= <P@HIDDEN>
In-Reply-To: <237c7d15-fc35-48da-b47e-a5a6c15c2b1e@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: control
Cc: =?UTF-8?B?T3R0byBLZWvDpGzDpGluZW4=?= <otto@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

tag 72012 notabug
close 72012
stop

On 10/07/2024 00:31, Paul Eggert wrote:
> On 7/10/24 00:35, Pádraig Brady wrote:
>> OK so id(1) will always show all groups it knows about.
>> Then the warning message might be along the lines of:
>>
>>     "warning: User '%s' is a member of more groups than the current
>> system limit"
> 
> I also am not seeing the point of the proposed diagnostic. I daresay
> most users would be more annoyed than usefully warned by the diagnostic;
> I know I would.
> 
> The rare user concerned about being in "too many" groups can run
> 'getconf NGROUPS_MAX' and 'id -G | wc -w' and compare.

Right.
Given that id can display all the groups,
it's not its responsibility to display potential limits from elsewhere.

cheers,
Pádraig





Last modified: Wed, 10 Jul 2024 08:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.