Bug 680025

Summary: RFE: Support changing user GIDs with kickstart user directives
Product: [Fedora] Fedora Reporter: Garrett Holmstrom <gholms>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-16 19:46:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Garrett Holmstrom 2011-02-24 05:48:08 UTC
Description of problem:
Local users specified with "user" directives in kickstarts always get personal groups created and assigned to them.  One can use "--groups" to add them to supplemental groups, but not change their primary GIDs.  A parameter that lets one choose either a standard group or a group specified via a "group" command would be useful to that end.


Version-Release number of selected component (if applicable):
anaconda-15.20-1.fc15

Comment 1 Chris Lumens 2011-03-04 13:36:11 UTC
What if you specify the following in your kickstart file:

group --name=username --gid=<whatever>
user --name=username <other options here>

Comment 2 Garrett Holmstrom 2011-03-06 19:48:55 UTC
(In reply to comment #1)
> What if you specify the following in your kickstart file:
> 
> group --name=username --gid=<whatever>
> user --name=username <other options here>

What I mean is that there is currently no way to set a new user's GID to anything other than that of a group whose name matches that of the user.  For instance, I can't say that "this user's primary group should be the stock 'users' group instead of a brand new one."  In your suggestion above do you mean to replace <whatever> with 100 in that case?  If so, won't that create a second name for that group?

Comment 3 Chris Lumens 2011-03-07 15:01:39 UTC
Oh, your goal is to avoid the creation of the special user-specific group entirely?

Comment 4 Garrett Holmstrom 2011-03-07 16:15:47 UTC
(In reply to comment #3)
> Oh, your goal is to avoid the creation of the special user-specific group
> entirely?

Yes, or at the very least to make it so it isn't the user's primary group.

Comment 5 Chris Lumens 2013-04-16 19:46:09 UTC
You should be able to do this with current anaconda/pykickstart now by using user --gid=.  This is in rawhide now, so F19 alpha and later.