Bug 7542 - adduser breaks putting multiple users into one group
Summary: adduser breaks putting multiple users into one group
Keywords:
Status: CLOSED DUPLICATE of bug 3809
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: shadow-utils
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-12-03 15:14 UTC by Dale Lovelace
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 1999-12-03 15:20:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Dale Lovelace 1999-12-03 15:14:08 UTC
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 15:20:59 UTC
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.