Bug 83507 - id prints primary group when -G used
id prints primary group when -G used
Status: CLOSED UPSTREAM
Product: Red Hat Linux
Classification: Retired
Component: sh-utils (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-02-04 20:01 EST by John Newbigin
Modified: 2007-04-18 12:50 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-12-10 07:51:17 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description John Newbigin 2003-02-04 20:01:13 EST
Description of problem:
According to the man page and info page
/usr/bin/id -G should "print only the supplementary groups"

In fact it also prints the primary group

Version-Release number of selected component (if applicable):
Tested on 7.2 & 8.0

How reproducible:
Always

Steps to Reproduce:
1. groupadd testgroup
2. useradd -g users -G testgroup testuser
3. id -Gn
    
Actual results:
users testgroup


Expected results:
testgroup

Additional info:
Could be that the docs are incorrect and listing the primary group is the
correct output?
Comment 1 Tim Waugh 2003-02-05 05:20:35 EST
Docs are incorrect.  Man page fixed in coreutils in rawhide; info page still
incorrect.
Comment 2 Tim Waugh 2004-12-10 07:51:17 EST
Reported upstream.

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