GNU bug report logs - #52656
(id) utility bug found

Previous Next

Package: coreutils;

Reported by: Morteza Ghorbani <morteza.ghorbani <at> live.com>

Date: Sun, 19 Dec 2021 14:28:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 52656 <at> debbugs.gnu.org (full text, mbox):

From: Chris Elvidge <celvidge001 <at> gmail.com>
To: Morteza Ghorbani <morteza.ghorbani <at> live.com>, 52656 <at> debbugs.gnu.org
Subject: Re: bug#52656: (id) utility bug found
Date: Sun, 19 Dec 2021 14:56:31 +0000

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




This bug report was last modified 3 years and 152 days ago.

Previous Next


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