Bug 7542 - adduser breaks putting multiple users into one group
adduser breaks putting multiple users into one group
Status: CLOSED DUPLICATE of bug 3809
Product: Red Hat Linux
Classification: Retired
Component: shadow-utils (Show other bugs)
6.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-12-03 10:14 EST by Dale Lovelace
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-12-03 10:20:03 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 Dale Lovelace 1999-12-03 10:14:08 EST
After addind _many_ users to a single group adduser will stop appending the
new user to the end of the line in /etc/group and will start putting a new
line in after each user.

This script will show you the problem:

for i in `cat /usr/dict/words` ; do adduser -G users $i ; done

the "users" line in /etc/group will look like this:

users:x:100:user1, user2, user3, user4, user5, etc, etc, wholalottusers
,nextuser
,nextuser
,nextuser
,nextuser

  Adding each word in the dictionary will get to the C's before it starts
this behavior, so it takes a few hours. Adding a user manually through
Linuxconf while your adduser script is running will hurry the process
though.
Comment 1 Dale Lovelace 1999-12-03 10:20:59 EST
Woops, didn't see bug 3809...

*** This bug has been marked as a duplicate of 3809 ***

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