[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: id not showing supplementary groups
From: |
Jim Meyering |
Subject: |
Re: id not showing supplementary groups |
Date: |
Thu, 24 Apr 2008 15:53:26 +0200 |
Javier Pello <address@hidden> wrote:
> Hi,
>
> I have just downloaded and installed coreutils-6.11 and I have come
> across a change in behaviour in the id program which does not seem
> to be documented. Specifically, id no longer prints the supplementary
> groups of the current process when invoked without a user argument,
> as in the following example:
>
> ~$ ./coreutils-6.10/src/id -G
> 100 8 10 14
> ~$ ./coreutils-6.11/src/id -G
> 100
>
> Furthermore, the behaviour is not consistent. If the uid of the
> process appears in /etc/passwd, then id shows the groups that uid
> is a member of (as defined in /etc/group); if the uid does not appear
> in /etc/passwd, then id shows the actual supplementary groups of the
> process (which is the right thing to do). I have attached a simple
> program that can be used to check this:
>
> ~# ./a.out 100
> (100:0) 13 17 19
> 0 13 17 19
> ~# ./a.out 101
> (101:0) 13 17 19
> 0 100
> ~# ./a.out 102
> (102:0) 13 17 19
> 0 13 17 19
Hi Javier,
Thanks for the report and patch.
I confess I haven't looked closely at either, but suspect
the problem is fixed in the latest snapshot:
http://meyering.net/cu/coreutils-ss.tar.gz 8.6 MB
http://meyering.net/cu/coreutils-ss.tar.lzma 3.6 MB
http://meyering.net/cu/coreutils-ss.tar.gz.sig
http://meyering.net/cu/coreutils-ss.tar.lzma.sig
Would you please confirm and let us know?
Jim