Bug 125891

Summary: useradd during %post locks group file
Product: [Fedora] Fedora Reporter: Daniel McNamara <daniel>
Component: shadow-utilsAssignee: Peter Vrabec <pvrabec>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: philip, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-03-25 14:20:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Daniel McNamara 2004-06-13 11:59:11 UTC
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 20:23:08 UTC
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 12:31:59 UTC
Mid-September please verify if this is still an issue with FC3 Test2.