Bug 83507

Summary: id prints primary group when -G used
Product: [Retired] Red Hat Linux Reporter: John Newbigin <jn>
Component: sh-utilsAssignee: Tim Waugh <twaugh>
Status: CLOSED UPSTREAM QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-10 12:51:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description John Newbigin 2003-02-05 01:01:13 UTC
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 10:20:35 UTC
Docs are incorrect.  Man page fixed in coreutils in rawhide; info page still
incorrect.

Comment 2 Tim Waugh 2004-12-10 12:51:17 UTC
Reported upstream.