Bug 1016163 - id prints incorrectly groups for the session
id prints incorrectly groups for the session
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: coreutils (Show other bugs)
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Ondrej Vasik
Tomas Dolezal
Depends On: 816708
Blocks: 1056252 1115430
  Show dependency treegraph
Reported: 2013-10-07 11:58 EDT by Ondrej Vasik
Modified: 2014-10-14 02:34 EDT (History)
8 users (show)

See Also:
Fixed In Version: coreutils-8.4-35.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 816708
: 1115430 (view as bug list)
Last Closed: 2014-10-14 02:34:11 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
proposed patch (577 bytes, patch)
2014-06-25 08:33 EDT, pstodulk
no flags Details | Diff
proposed upstream patch (3.51 KB, patch)
2014-06-25 21:49 EDT, Pádraig Brady
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 473493 None None None Never

  None (edit)
Comment 1 Ondrej Vasik 2013-10-07 12:00:04 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

Actual results:
$ id
uid=501(Reset) gid=502(Reset) groups=1502,490(mock),502(Reset) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
Expected results:
$ id
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)
Comment 6 pstodulk 2014-06-25 08:33:20 EDT
Created attachment 912082 [details]
proposed patch

Attached patch which is based on upstream patch for commands 'groups' and 'id -G'. I wait for upstream feedback.
Comment 7 Pádraig Brady 2014-06-25 21:49:26 EDT
Created attachment 912313 [details]
proposed upstream patch

Can we make this bug public?
Comment 12 errata-xmlrpc 2014-10-14 02:34:11 EDT
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.


Note You need to log in before you can comment on or make changes to this bug.