Bug 157795 - useradd hangs when adding user if duplicate groups present
useradd hangs when adding user if duplicate groups present
Product: Fedora
Classification: Fedora
Component: shadow-utils (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Peter Vrabec
David Lawrence
Depends On:
  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:
Last Closed: 2005-05-16 07:08:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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):

How reproducible:

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.