GNU bug report logs - #53631
coreutils id(1) incorrect behavior

Previous Next

Package: coreutils;

Reported by: "Vladimir D. Seleznev" <vseleznv <at> altlinux.org>

Date: Sun, 30 Jan 2022 01:00:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Martin Schulte <gnu <at> schrader-schulte.de>
To: Bob Proulx <bob <at> proulx.com>
Cc: 53631 <at> debbugs.gnu.org, "Vladimir D. Seleznev" <vseleznv <at> altlinux.org>
Subject: bug#53631: coreutils id(1) incorrect behavior
Date: Sun, 30 Jan 2022 11:15:23 +0100
Hello Bob!

> > Expected behavior is:
> > 	# id user1
> > 	uid=1027(user1) gid=1027(user1) groups=1027(user1)
> > 	# id user2
> > 	uid=1027(user1) gid=1027(user1) groups=1027(user1),1028(somegroup)
> 
> I just tried a test on both FreeBSD and NetBSD and both FreeBSD and
> NetBSD behave as you expect.  That would give weight for GNU Coreutils
> matching that behavior.

In addition (and maybe even more important) I expect that "id -u <user>" prints the same result the same result as "id" prints out after <user> as logged in:

root <at> martnix4:~# su - user1
user1 <at> martnix4:~$ id
uid=1002(user1) gid=1002(user1) groups=1002(user1)
user1 <at> martnix4:~$ exit
logout
root <at> martnix4:~# su - user2
user1 <at> martnix4:~$ id
uid=1002(user1) gid=1002(user1) groups=1002(user1),1003(somegroup)
user1 <at> martnix4:~$ exit
logout
root <at> martnix4:~#

So, it really looks like a bug for me...

Best regards,

Martin




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

Previous Next


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