Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 125891 - useradd during %post locks group file
useradd during %post locks group file
Product: Fedora
Classification: Fedora
Component: shadow-utils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Peter Vrabec
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2004-06-13 07:59 EDT by Daniel McNamara
Modified: 2007-11-30 17:10 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-03-25 09:20:21 EST
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 Daniel McNamara 2004-06-13 07:59:11 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6)
Gecko/20040206 Firefox/0.8

Description of problem:
Running a kickstart install and trying to do a useradd as part of the

useradd succeds mostly but something during it causts the /etc/group
file to be locked and the users group is not added succesfully. Also
makes adding any other user/groups after the fact almost impossible as
the group file (and corresponding shadow file) remain locked after the

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Create a kickstart config - Add a useradd command in %post
2. Run the kickstart install. Should succedd without errors
3. Check the system upon reboot

Actual Results:  /etc/group file will be locked
Confirmed by prescence /etc/group.lock
Adding further groups will fail due to lock
The users group will not exist either

Expected Results:  users group should be added
group file should not be locked
Adding groups should not be failed by group.lock

Additional info:

Tested with also changing the useradd to set users primary group as an
existing group. Also fails and results in the group file lock.
Comment 1 Philip Balister 2004-06-25 16:23:08 EDT
I installed FC2 and then tried adding a user. Ran into the group file
locked message. The group entry for the user I added during install is
in the group file. I removed /etc/group.lock and then successfully
added a new user with useradd.
Comment 2 Warren Togami 2004-08-24 08:31:59 EDT
Mid-September please verify if this is still an issue with FC3 Test2.

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