Bugzilla – Bug 152265
user module does not Export()/Import() the GIDs
Last modified: 2006-02-24 10:44:37 UTC
for some reason it's not possible to set the GID of a group in the autoyast profile.
BTW, it's possible to set the GID via the UI but the value is not going into the profile.
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?
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.
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?
yes, I'll test the installation. At the moment I'm doing a lot of installations per day anyway.
installation looks good
fixed in yast2-users-2.13.14