Bug 680025 - RFE: Support changing user GIDs with kickstart user directives
Summary: RFE: Support changing user GIDs with kickstart user directives
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-24 05:48 UTC by Garrett Holmstrom
Modified: 2013-04-16 19:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-16 19:46:09 UTC
Type: ---


Attachments (Terms of Use)

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.


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