From unknown Thu Jun 19 16:23:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#52656 <52656@debbugs.gnu.org> To: bug#52656 <52656@debbugs.gnu.org> Subject: Status: (id) utility bug found Reply-To: bug#52656 <52656@debbugs.gnu.org> Date: Thu, 19 Jun 2025 23:23:58 +0000 retitle 52656 (id) utility bug found reassign 52656 coreutils submitter 52656 Morteza Ghorbani severity 52656 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 09:27:19 2021 Received: (at submit) by debbugs.gnu.org; 19 Dec 2021 14:27:19 +0000 Received: from localhost ([127.0.0.1]:45313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myx9i-0007uI-Rs for submit@debbugs.gnu.org; Sun, 19 Dec 2021 09:27:19 -0500 Received: from lists.gnu.org ([209.51.188.17]:36836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myuFM-0005yQ-UB for submit@debbugs.gnu.org; Sun, 19 Dec 2021 06:20:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myuFM-0000TN-PB for bug-coreutils@gnu.org; Sun, 19 Dec 2021 06:20:56 -0500 Received: from mail-bn8nam12olkn2038.outbound.protection.outlook.com ([40.92.21.38]:42452 helo=NAM12-BN8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myuFI-0006iM-Sb for bug-coreutils@gnu.org; Sun, 19 Dec 2021 06:20:56 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V5NB4JHB4WebMUd4m2Tmthfhs3+HWvHgM2XReZr1MgHeqYtkkrBvF9kWvZIvoEBXdxJ3/+6LRRermQJKYpwrQCxcpk6aTyn6m3pxNfE2sI8eIOIqBsKQYXMtbAnVk93vCmzYWqqu7jFMHjA6t3/6Ko8ksFXfypR2GC1sQH9Ti+JIKP5spdAlq+QtIVdmzqpVEzpajVsRn0kMNDSpMM5sKcZvvi1j1tCkYvOQTGD+b/hNh/m989WkuUf8onXqhmcYSKiXtA1DxAQGmjUVCjOXeJpq7ts32i5aTETvaY4gidW3vHhtP0GYUVv6iPfdiK/vPc/XcnTzbcctfBGlsbTC/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=snhKcmd6lCs1J0RJIfPD5D4Phf9NuGsOOHfYs9iu5sw=; b=NCrqVEprHiBlqEaSLDBJscdazwtTaoAI4DbjudPURDevUpfiDqQVYxHxct9B3nPxFD4PB4p2pIYy62rmbUblQ9wphGR5JK/SukHjcYhKIIgaj8Gej1E5vqD9tIeLUUg9QRM5pTFN7U73cJUV6GhbOUU483N2dH6peivoipy0gumwwrSdebTvVbjRbkgjh5vySdzbhwoC+S6Gl7xlSyvVTm3Vx99k8ikJkqjvR4hIIip40ElvHzXylDkqJqNiVU9ZkbC3E1GbzyIX3JzuxV2Z1YP36d+SZEvzmKOC/2uvwhMH2yQPSKy6OqVCkSwxAI81J5TrnwFFTxHE64Kao2L/CQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=snhKcmd6lCs1J0RJIfPD5D4Phf9NuGsOOHfYs9iu5sw=; b=XMpSYkfWdNjhixaEO0VQ0tGPFhOX0p7YWI07ZK4P/4Cb+0OeUqy/XzNZ/ihyWLBVYuCMxFgobF3xtbYklCecuCibRv5CNnj3VwEmcUvKsVJtcElKYjsuErvuiq7+vgcKZEueoFFgnI530WG0W+yv+mvwm44ZsVuULDxnQu1vfqMwBU7ksjZLI5gYCeBq4WR1gwhy+3TfgNRYB8k/GbkUAjxvunpk3OVkdhYz1SL8MJuWUyY/eU8f6nhAdBghfC4canvjPISdAv4Q/Q9kVTgDaLw6gRejy8DqPcKoPzBW/7UG0YNxIhNX1MFfBQtkfyrtFvqzhTVE2qGVNe+CmmpczQ== Received: from BYAPR17MB2662.namprd17.prod.outlook.com (2603:10b6:a03:88::31) by BY5PR17MB3412.namprd17.prod.outlook.com (2603:10b6:a03:1be::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.17; Sun, 19 Dec 2021 11:01:37 +0000 Received: from BYAPR17MB2662.namprd17.prod.outlook.com ([fe80::3c53:967c:e283:e584]) by BYAPR17MB2662.namprd17.prod.outlook.com ([fe80::3c53:967c:e283:e584%7]) with mapi id 15.20.4778.019; Sun, 19 Dec 2021 11:01:37 +0000 From: Morteza Ghorbani To: "bug-coreutils@gnu.org" Subject: (id) utility bug found Thread-Topic: (id) utility bug found Thread-Index: AQHX9MYiTmwZ4hEbA0ipPTAcsflMNg== Date: Sun, 19 Dec 2021 11:01:37 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [M2s6qn9g14GKPJYCFp5lHd228CYFqpBqzR87l3by31E=] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 786e15b8-de80-4bf6-4c76-08d9c2deed6d x-ms-traffictypediagnostic: BY5PR17MB3412:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bVCznFvH85Pk/uVG22QjFGYviSiZ8hMLlOhBTjU78z7RstajLcnGJ6xREXHYfdeoXYK8N0FsANXn+UKaV31hc510pm7Utugnqz2BcbuyP0xJNzN0G6OeS6ymF8dmg91Gw/dpb3hdfA5lj8qTAgUFGMosnsGISHJU5f2vriDQ7tSEWpQoUgVUxW36QZ8VQoV9fMonLGn2RrkVAUKYRDoF8ottSPFsEaOcf5Gd4hxn60IIwHABqMdw7VQoFTQr0IkXMxj0qw/NjsAWFx8bF6/glhhG58RMcsYyK9tJtuzkut99jKSlNm3+/7NReV04a/VlcxTBdqc/AslUxyQuk53qG2KH9Pa6UfIqOKqofWDBmsFRDTaq/7kpXzUwMU6auh95LT6vzjh+NYeEFNkPGUPQWwP+U01Sf6DMDkg6209TeLKiA4XSyKJoDdtaA24dPZqZHgJhXKG55tAPgkod7EFTqu4uka9jp4SwIfQC69FZADcyprgPj+/zRV20T+Vmu+4VAJNFUEbclvlNdnIu00BvO+H91WTfsd5MFN7benRsnoy1zbaUdY8al+LRz4llSONLfYRSKmsKuC/WT2xZiIWLOQ== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?SfsyQQGZTkfIzYCptWqTo5hs+r2OhxZL0cNF3kDHKqtYQWy/Sx/SNiBL?= =?Windows-1252?Q?5VEhSSdQygQABQdJQ3r4amxZJRugdPnZhQN3+0bRfydLVeqIDCqMvpPk?= =?Windows-1252?Q?IiovSHjZAGyYAHEMwDSfeRRiOGMV1Z931O3UQp1dGnycWOqXNlU75+XZ?= =?Windows-1252?Q?iGnL6klxeWkwkPQ7+vhqWc44R4DWsYX39tmJWBqwKp9BIk+gkxvmEPgD?= =?Windows-1252?Q?G9aLJZcc0Pd+z8kzF2dKnKKScPoNbcGOODfp/mh6mJDAEmFx60U4cLv9?= =?Windows-1252?Q?c95dq0GOGrw8hES/zdKATTX79ekO364pMTSVDmYF05cYVYDW6lPVFbpM?= =?Windows-1252?Q?nGWGcWKm6ED1t/cZaAW0kNxcnezN0587u5d8pNnYdL6EpMlbHamjUqqt?= =?Windows-1252?Q?iCqxOub9no2Fyp2m2HFJNCh4LPOGrsAQcaFTPQl26kphjG6hGGULClZU?= =?Windows-1252?Q?ZbMIa6A3C2x8d2eU289Ut3457sexlEIW9NxHgJcCOWHm0potBDC3oKJi?= =?Windows-1252?Q?PxrQR8+13ARaXLj3A4qTXJFT3sg2MO68lROcqir9aPMj9SAT2Vae/NoP?= =?Windows-1252?Q?jWvGDuOEnKUfqoqHZYu8vw3ZDZUmb9049VEEn+DUWBO4Ypdh3jRk7CrB?= =?Windows-1252?Q?qRc0pI8SdR2MtG2Y6pSYMCGcQr/WwVusOvIIYJ6VEI2x1bnXY/qhqGS4?= =?Windows-1252?Q?NHpRKIv6tPCsZqlgSZ9x1OIbbC+DhTV7WzXMn3svy/OuI/gEhxrLvWX1?= =?Windows-1252?Q?tkdYYD5u4ZrZ6vBMr8zJ7+TtCKgJz0c2wsR3YfiuJqUr18LX+tS/uRLK?= =?Windows-1252?Q?Jo+3kW2dNWwmiE3lqcVXuU2g5Hsp6ecDFSP0dEYU+JLzcyoxKCPKtamZ?= =?Windows-1252?Q?go1UOgx6gPKzPtMsjZhJymoDGRFDQHA5yqW3D/Y5BOiPUrQaPSEi/ArO?= =?Windows-1252?Q?HDXz5aQt2vrixqMaGobV230NoG4/TVQkXwGOKEHmxsoj3tYeoV9TLCbm?= =?Windows-1252?Q?e+0xV/RTIgfl89u++w1e+ElHfkuk/ye/pIolxLy+RaCrSsaTgmw=3D?= Content-Type: multipart/alternative; boundary="_000_BYAPR17MB2662122F7D4323EFC5C18D74E17A9BYAPR17MB2662namp_" MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-c704e.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR17MB2662.namprd17.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 786e15b8-de80-4bf6-4c76-08d9c2deed6d X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2021 11:01:37.0397 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR17MB3412 Received-SPF: pass client-ip=40.92.21.38; envelope-from=morteza.ghorbani@live.com; helo=NAM12-BN8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 19 Dec 2021 09:27:17 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --_000_BYAPR17MB2662122F7D4323EFC5C18D74E17A9BYAPR17MB2662namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hello I am Morteza Ghorbani While Working with id utility, I found strange behavior. Suppose that my username is =91user1=92 , so if I remove user1 from a parti= cular group (e.g. netdev) by the following instruction : gpasswd =96delete user1 netdev then if I enter the =91id=92 command, I will be noted that nothing has been= changed and still see the group which I removed the use1 from. On the other hand, if I enter the command =91 id user1 =91, by this way I c= an see the changes ! In a nutshell, =91id=92 --> does not show the changes while =91id user1=92= shows the changes and its behavior is correct. --_000_BYAPR17MB2662122F7D4323EFC5C18D74E17A9BYAPR17MB2662namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Hello

I am Morteza Ghorbani

While Working with id utility, I found strange behav= ior.

Suppose that my username is =91user1=92 , so if I re= move user1 from a particular group (e.g. netdev)  by the following ins= truction :

gpasswd =96delete user1 netdev  

 

then if I enter the =91id=92 command, I will be note= d that nothing has been changed and still see the group which I removed the= use1 from.

On the other hand, if I enter the command =91 id use= r1 =91, by this way I can see the changes !

 

In a nutshell,  =91id=92 =E0 does not show the changes while =91id user1=92 s= hows the changes and its behavior is correct.

--_000_BYAPR17MB2662122F7D4323EFC5C18D74E17A9BYAPR17MB2662namp_-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 09:56:55 2021 Received: (at 52656) by debbugs.gnu.org; 19 Dec 2021 14:56:55 +0000 Received: from localhost ([127.0.0.1]:47685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myxcN-0000pU-8Z for submit@debbugs.gnu.org; Sun, 19 Dec 2021 09:56:55 -0500 Received: from mail-ed1-f52.google.com ([209.85.208.52]:39465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myxcL-0000pI-Gv for 52656@debbugs.gnu.org; Sun, 19 Dec 2021 09:56:54 -0500 Received: by mail-ed1-f52.google.com with SMTP id f5so4994860edq.6 for <52656@debbugs.gnu.org>; Sun, 19 Dec 2021 06:56:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=ujLAPNRkDUMdR8oZO8BgN3xzQVIqWxijrVoJn9SVKcg=; b=mMiyBhMnE/DhPWzWQ/QWmiMCtVd8ndeDxn3fNNPZ2MHAo1+xnvzHVu3Xf0lA2g9oes aXJ5k8w8P7BBRl5LuNaOP++SpMkV1/D902hrDFXsUOIEPktD/KlrR3nhj1WsLn2Mpu/V sI1NiZr9AdezAl7cPrh7JTmCgqzxORTe23G1kh6/v5lFmiebUZpqsUd6ylJP/XdTJvDg ph5PbS00o3SpmJuWb1WsD3nmV9qEOkImStE7nExNHLqVs1w24ehMMzEeduLwtfarQcCm wBAsEuYfXIo/jI1RyJQOKqROk3iansobpechAHj8Xgyt1zQ2V7rpeJ7NaHo/vyBvuJG+ vQFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ujLAPNRkDUMdR8oZO8BgN3xzQVIqWxijrVoJn9SVKcg=; b=3NWcxAdRoN2CiyPryrMX/I1mDLQQyAt2ItbaT5AgO98Av5RbnCbsSnKCBxhhEN9WiB sRPV9tEo5Wfh5uoZP87mpQ78A9PFvl287z1jz5+pBEq5FYvkFkB4uzYqQcwjuE2VyChZ JAtUbaaqCJXepDpmUs/XJgMyhrhRNgpaXU4o8JmjS5/IPbemr6Zzr8Snp5UTalx70nT8 9gkdkal3d/G2WImU7itao9s5nXsyy3psFxtXC/K42bwNHTPPPbcfzXbw+sTZh9ord/VV BqOv2c4eIisCRDMAYRsOGQ/OMuuZNMRQKh2RmfoCc2UQgjQqR6bCK3kbPUXfErm68+q9 Gxmw== X-Gm-Message-State: AOAM532emkBDNtD7tK+WVqPhJ/6gYJxcnkRNJH5L+zirkkw/QBkTERMl 30ZDIClYiTyK+v4jF0eBjAc8taZhhj8= X-Google-Smtp-Source: ABdhPJyNcA+u/wMiVbSw2JUpJihJ2HQ5up972uUd2m37BVNAT3BqSfgJRXdx9QNEJ79eNHzm57MLhQ== X-Received: by 2002:a05:6402:35cc:: with SMTP id z12mr11382747edc.393.1639925807700; Sun, 19 Dec 2021 06:56:47 -0800 (PST) Received: from [192.168.23.100] (92.40.196.238.threembb.co.uk. [92.40.196.238]) by smtp.gmail.com with ESMTPSA id l16sm3050639eds.63.2021.12.19.06.56.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Dec 2021 06:56:47 -0800 (PST) Subject: Re: bug#52656: (id) utility bug found To: Morteza Ghorbani , 52656@debbugs.gnu.org References: From: Chris Elvidge Message-ID: <80a1d02a-0bc4-9fe1-d519-c6ade3280091@gmail.com> Date: Sun, 19 Dec 2021 14:56:31 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Lightning/5.4 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 52656 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) On 19/12/2021 11:01, Morteza Ghorbani wrote: > Hello > I am Morteza Ghorbani > While Working with id utility, I found strange behavior. > Suppose that my username is ‘user1’ , so if I remove user1 from a particular group (e.g. netdev) by the following instruction : > gpasswd –delete user1 netdev > > then if I enter the ‘id’ command, I will be noted that nothing has been changed and still see the group which I removed the use1 from. You have to log out/in to do the change. Then it will show the change in 'id'. > On the other hand, if I enter the command ‘ id user1 ‘, by this way I can see the changes ! That looks up the latest definition of 'user1' > > In a nutshell, ‘id’ --> does not show the changes while ‘id user1’ shows the changes and its behavior is correct. > -- Chris Elvidge From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 09:58:47 2021 Received: (at 52656) by debbugs.gnu.org; 19 Dec 2021 14:58:48 +0000 Received: from localhost ([127.0.0.1]:47690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myxeB-0000sg-Ja for submit@debbugs.gnu.org; Sun, 19 Dec 2021 09:58:47 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myxeA-0000sL-Az for 52656@debbugs.gnu.org; Sun, 19 Dec 2021 09:58:46 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2A26F5C0152; Sun, 19 Dec 2021 09:58:41 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 19 Dec 2021 09:58:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zplane.com; h= date:from:to:cc:subject:message-id:reply-to:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm2; bh=hUoj8Ul8w7jLSgk+37PyNufSe7SBK8Rgd8KcBme0 9bs=; b=ahFWwgc5MPjks8a3vXujhMmxBkK3m9yWycnRhPJUIitIGfuXt31ZFHmw vEgANCpY4sWsW3Qe4b87713tQhD/CYpwNheoQuSRuW9MWyVoijt7jOzVVuTGL4xi RJwoWhhd9Oe8IClUH88wS6PMyMbeeSAlnNc2/ZxiWwvoxZ/o5uUV+apf7bDAztFN 24MmX4n1Jn8Vz1HVoTDiKcyOC0QQBmz8S1JMiXYWQDzUHEmVD48k8pXfoRrQzEbE ngusgBwabR6oKLqi9K91Wiizsv/b7S1ajl5DUDuEo/NQ3JD+EWmg0BDD6bXODV0+ mOp67jLmR3xvn58x89rEsacfICXi7Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :reply-to:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=hUoj8Ul8w7jLSgk+37PyNufSe7SBK 8Rgd8KcBme09bs=; b=J5OmWjmxMkH1hUkS7AkIh/bGFQ0j8qRu7Kg+nFz3XEjla 5RPOyU+YjX9GbSsI6bekK1ULC2cMVDPmnmzWrLAxsuHdSVLob0d6veNb2qRlywxQ P7z41ruQKdMM8EokrxXA9e/3fB9QY6/EdhFgHnQmHYRveODBDJhfJxMsGWrNFFX0 pSWRcQKo2Tc9K6WPyh2THUGN444onFPDWQAINZSrc56LNfjPASZ9cA5aEgGpQJQE kTHwP6hGBDG3zB29ZAXgf0fktpP4sZPRpZ9MfOC/zRk1wJv6HM/rKZgCX65BNa31 vFI3CPgCBXh//wuunSHfIEPJEoMnVqQwX3AW0wI9w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddttddgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhrfhggtggugfgjfgesthhqtddttderjeenucfhrhhomhepifhl vghnnhcuifholhguvghnuceoghgughesiihplhgrnhgvrdgtohhmqeenucggtffrrghtth gvrhhnpeffieeuudeijeeiheeigfettdfftedvuddujeeiveehueefgffhffeuleekveej keenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgug hgseiiphhlrghnvgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 19 Dec 2021 09:58:40 -0500 (EST) Received: by huh.zplane.com (Postfix, from userid 501) id 31E05638BD; Sun, 19 Dec 2021 07:58:39 -0700 (MST) Date: Sun, 19 Dec 2021 07:58:39 -0700 From: Glenn Golden To: Morteza Ghorbani Subject: Re: bug#52656: (id) utility bug found Message-ID: <20211219145839.GB661@huh.zplane.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52656 Cc: 52656@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: gdg@zplane.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Morteza Ghorbani [2021-12-19 11:01:37 +0000]: > Hello > I am Morteza Ghorbani > While Working with id utility, I found strange behavior. > Suppose that my username is =E2=80=98user1=E2=80=99 , so if I remove user= 1 from a=20 > particular group (e.g. netdev) by the following instruction :=20 > gpasswd =E2=80=93delete user1 netdev >=20 > then if I enter the =E2=80=98id=E2=80=99 command, I will be noted that no= thing has=20 > been changed and still see the group which I removed the use1 from.=20 > On the other hand, if I enter the command =E2=80=98 id user1 =E2=80=98, b= y this way=20 > I can see the changes !=20 >=20 > In a nutshell, =E2=80=98id=E2=80=99 --> does not show the changes while = =E2=80=98id=20 > user1=E2=80=99 shows the changes and its behavior is correct.=20 > The above behavior is expected, and documented in coreutils.info going back to at least 8.30 (September 2018): "Primary and supplementary groups for a process are normally inherited from its parent and are usually unchanged since login. This means that if you change the group database after logging in, =E2=80=98id=E2=80=99= will not reflect your changes within your existing login session. Running =E2=80=98id= =E2=80=99 with a user argument causes the user and group database to be consulted afresh, and so will give a different result." However, there does seem to be a disconnect between the 'id' man page and coreutils.info, even in coreutils 9.0, which imo could benefit from some minor language improvement: The first sentence of the man page says "Print user and group information for each specified USER, or (when USER omitted) for the current user." but coreutils.info says "=E2=80=98id=E2=80=99 prints information about the given user, or the p= rocess running it if no user is specified." The coreutils.info is probably 'more correct', because it seems to explain why the no-user-specified behavior is the way it is. Possibly the man page could be updated to say the same. Glenn From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 12:26:15 2021 Received: (at 52656-done) by debbugs.gnu.org; 19 Dec 2021 17:26:15 +0000 Received: from localhost ([127.0.0.1]:47971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myzws-0007KG-Uh for submit@debbugs.gnu.org; Sun, 19 Dec 2021 12:26:15 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:47852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myzwp-0007K0-TX for 52656-done@debbugs.gnu.org; Sun, 19 Dec 2021 12:26:13 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 60CCE160057; Sun, 19 Dec 2021 09:26:05 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id RpDnWAL8C0HR; Sun, 19 Dec 2021 09:26:04 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9C66A160071; Sun, 19 Dec 2021 09:26:04 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HuvBM3w1Ftv8; Sun, 19 Dec 2021 09:26:04 -0800 (PST) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 59FE5160057; Sun, 19 Dec 2021 09:26:04 -0800 (PST) Content-Type: multipart/mixed; boundary="------------qIVA1Ol14bhBJWj7lr4qQI5K" Message-ID: <7778bfd6-f61c-7f29-9130-066722e867f2@cs.ucla.edu> Date: Sun, 19 Dec 2021 09:26:03 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: bug#52656: (id) utility bug found Content-Language: en-US To: Glenn Golden References: <20211219145839.GB661@huh.zplane.com> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <20211219145839.GB661@huh.zplane.com> X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 52656-done Cc: 52656-done@debbugs.gnu.org, Morteza Ghorbani X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) This is a multi-part message in MIME format. --------------qIVA1Ol14bhBJWj7lr4qQI5K Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/19/21 06:58, Glenn Golden wrote: > Possibly the man page > could be updated to say the same. Thanks for the suggestion. I installed the attached documentation patch and am closing the bug report. --------------qIVA1Ol14bhBJWj7lr4qQI5K Content-Type: text/x-patch; charset=UTF-8; name="0001-id-improve-doc-for-when-USER-is-omitted.patch" Content-Disposition: attachment; filename="0001-id-improve-doc-for-when-USER-is-omitted.patch" Content-Transfer-Encoding: base64 RnJvbSBkM2JlYjUzYmU2NGE5NTg5ODhhOTRlZDg2ZTYyNDZhMjFkYzk1YTljIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBTdW4sIDE5IERlYyAyMDIxIDA5OjEyOjU5IC0wODAwClN1YmplY3Q6IFtQQVRD SF0gaWQ6IGltcHJvdmUgZG9jIGZvciB3aGVuIFVTRVIgaXMgb21pdHRlZApNSU1FLVZlcnNp b246IDEuMApDb250ZW50LVR5cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9VVRGLTgKQ29udGVu dC1UcmFuc2Zlci1FbmNvZGluZzogOGJpdAoKKiBzcmMvaWQuYyAodXNhZ2UpOiDigJxjdXJy ZW50IHVzZXLigJ0g4oaSIOKAnGN1cnJlbnQgcHJvY2Vzc+KAnSAoQnVnIzUyNjU2KS4KLS0t CiBzcmMvaWQuYyB8IDIgKy0KIDEgZmlsZSBjaGFuZ2VkLCAxIGluc2VydGlvbigrKSwgMSBk ZWxldGlvbigtKQoKZGlmZiAtLWdpdCBhL3NyYy9pZC5jIGIvc3JjL2lkLmMKaW5kZXggYTZj NDhjZDUwLi5iMTEwMDQ4ZDMgMTAwNjQ0Ci0tLSBhL3NyYy9pZC5jCisrKyBiL3NyYy9pZC5j CkBAIC05Niw3ICs5Niw3IEBAIHVzYWdlIChpbnQgc3RhdHVzKQogICAgICAgcHJpbnRmIChf KCJVc2FnZTogJXMgW09QVElPTl0uLi4gW1VTRVJdLi4uXG4iKSwgcHJvZ3JhbV9uYW1lKTsK ICAgICAgIGZwdXRzIChfKCJcCiBQcmludCB1c2VyIGFuZCBncm91cCBpbmZvcm1hdGlvbiBm b3IgZWFjaCBzcGVjaWZpZWQgVVNFUixcblwKLW9yICh3aGVuIFVTRVIgb21pdHRlZCkgZm9y IHRoZSBjdXJyZW50IHVzZXIuXG5cCitvciAod2hlbiBVU0VSIG9taXR0ZWQpIGZvciB0aGUg Y3VycmVudCBwcm9jZXNzLlxuXAogXG4iKSwKICAgICAgICAgICAgICBzdGRvdXQpOwogICAg ICAgZnB1dHMgKF8oIlwKLS0gCjIuMzIuMAoK --------------qIVA1Ol14bhBJWj7lr4qQI5K-- From unknown Thu Jun 19 16:23:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 17 Jan 2022 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator