Bug 157795 - useradd hangs when adding user if duplicate groups present
useradd hangs when adding user if duplicate groups present
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: shadow-utils (Show other bugs)
3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Peter Vrabec
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-15 16:39 EDT by P Fudd
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-05-16 07:08:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description P Fudd 2005-05-15 16:39:12 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922

Description of problem:
useradd goes into an infinite loop if you try to add someone to a supplemental group that appears twice in the group file.

Version-Release number of selected component (if applicable):
shadow-utils-4.0.3-37

How reproducible:
Always

Steps to Reproduce:
1. echo dupgroup:x:505: >> /etc/group
2. echo dupgroup:x:506: >> /etc/group
3. /usr/bin/seuseradd -G dupgroup someuser
 

Actual Results:  Stuck in infinite loop, syslog messages being generated rapidly.

Expected Results:  Either quit with error message or add to the first group.

Additional info:

This bug report is the product of a painful elimination process.
Comment 1 Peter Vrabec 2005-05-16 07:08:31 EDT
it's already fixed in devel

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