Red Hat Bugzilla – Bug 1016163
id prints incorrectly groups for the session
Last modified: 2014-10-14 02:34:11 EDT
groups and id -G was fixed by 816708
simple id still contains the wrong group
Steps to reproduce:
1. Edit some user in /etc/passwd and change his gid to e.g. 1502 from 502
uid=501(Reset) gid=502(Reset) groups=1502,490(mock),502(Reset) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
uid=501(Reset) gid=502(Reset) groups=490(mock),502(Reset) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
(id -G and groups commands report correct output since coreutils-8.4-22.el6)
Created attachment 912082 [details]
Attached patch which is based on upstream patch for commands 'groups' and 'id -G'. I wait for upstream feedback.
Created attachment 912313 [details]
proposed upstream patch
Can we make this bug public?
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.