Bug 152265 - user module does not Export()/Import() the GIDs
Summary: user module does not Export()/Import() the GIDs
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: AutoYaST (show other bugs)
Version: Beta 4
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jiří Suchomel
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-20 15:42 UTC by Uwe Gansert
Modified: 2006-02-24 10:44 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
patch for /usr/share/YaST2/modules/Users.pm (652 bytes, patch)
2006-02-21 14:25 UTC, Jiří Suchomel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Gansert 2006-02-20 15:42:55 UTC
for some reason it's not possible to set the GID of a group in the autoyast profile.
Comment 1 Uwe Gansert 2006-02-21 09:14:42 UTC
BTW, it's possible to set the GID via the UI but the value is not going into the profile.

Comment 2 Jiří Suchomel 2006-02-21 13:47:42 UTC
GID is present in Export map only if it was changed (for some existing system group). It may have a sense to not export GID's of new'ly created group because they are usually not important and yast can easily generate new ones during autinstallation. This way we also avoid possible conflicts with GID's of new groups added by rpm's script during installation.

However it might also have a sense to export GID's for newly created groups (and not export the unchanged GID's of modified groups).

But even in current version it should be possible to create a group with specific GID, which is defined in the profile (as "gid" or "gidnumber" value). Are you sure it is not possible? Did you test it?
Comment 3 Uwe Gansert 2006-02-21 14:07:46 UTC
No, I did not test it. I did not know the keyname and I was too lazy to read the code and so I asked you in the IRC :)
I did not know that I just have to change a GID value to get the key in the profile.

I don't know if it's really important to change the GID for new groups but if we don't support that, then maybe we should grey out the value in the UI for new groups.

Comment 4 Jiří Suchomel 2006-02-21 14:25:41 UTC
Created attachment 69589 [details]
patch for /usr/share/YaST2/modules/Users.pm

Well, here is the patch. 
I tested creating profile, it should work well; do you want to test the installation?
Comment 5 Uwe Gansert 2006-02-21 14:34:06 UTC
yes, I'll test the installation.
At the moment I'm doing a lot of installations per day anyway.

Comment 6 Uwe Gansert 2006-02-21 15:36:16 UTC
installation looks good
Comment 7 Jiří Suchomel 2006-02-24 10:44:37 UTC
fixed in yast2-users-2.13.14