Description of problem: When installing Fedora23: - click on User Creation - click Advanced - set user group id to 100500 - in groups field, write "samplegroupname (100500)" And then this error occurs. Expected behavior: 1. A group with the name "samplegroupname" and gid 100500 is created 2. "samplegroupname" group is assigned as a main group for my new user Actually I think this can be an invalid way to achieve what I want, but then it is not obvious how to do this during system installation. Version-Release number of selected component: anaconda-core-23.19.10-1.fc23.x86_64 The following was filed automatically by anaconda: anaconda 23.19.10-1 exception report Traceback (most recent call first): File "/usr/lib64/python3.4/site-packages/pyanaconda/users.py", line 223, in createGroup raise ValueError("GID %s already exists" % kwargs.get("gid")) File "/usr/lib64/python3.4/site-packages/pyanaconda/users.py", line 270, in createUser self.createGroup(user_name, gid=kwargs['gid'], root=root) File "/usr/lib64/python3.4/site-packages/pyanaconda/kickstart.py", line 1742, in execute if not users.createUser(usr.name, **kwargs): File "/usr/lib64/python3.4/site-packages/pyanaconda/install.py", line 96, in doConfiguration ksdata.user.execute(storage, ksdata, instClass, u) File "/usr/lib64/python3.4/threading.py", line 868, in run self._target(*self._args, **self._kwargs) File "/usr/lib64/python3.4/site-packages/pyanaconda/threads.py", line 253, in run threading.Thread.run(self, *args, **kwargs) ValueError: GID 100500 already exists Additional info: cmdline: /usr/bin/python3 /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base cmdline_file: initrd=initrd0.img root=live:CDLABEL=LIVE rootfstype=vfat ro rd.live.image quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 BOOT_IMAGE=vmlinuz0 executable: /sbin/anaconda hashmarkername: anaconda kernel: 4.2.3-300.fc23.x86_64 other involved packages: python3-libs-3.4.3-5.fc23.x86_64 product: Fedora release: Fedora release 23 (Twenty Three) type: anaconda version: 23
Created attachment 1090933 [details] File: anaconda-tb
Created attachment 1090934 [details] File: anaconda.log
Created attachment 1090935 [details] File: environ
Created attachment 1090936 [details] File: journalctl
Created attachment 1090937 [details] File: lsblk_output
Created attachment 1090938 [details] File: nmcli_dev_list
Created attachment 1090939 [details] File: os_info
Created attachment 1090940 [details] File: program.log
Created attachment 1090941 [details] File: storage.log
Created attachment 1090942 [details] File: ifcfg.log
Created attachment 1090943 [details] File: packaging.log
The actual problem is that GID 100500 is greater than Fedora's maximum GID of 60000, configured in /etc/login.defs. We can fix the error message and change the validation to catch this earlier, so that it doesn't crash the installer. As far as being unable to use GID 100500, I don't know why Fedora uses 60000 as the maximum. I'd suggest opening a bug against distribution or shadow-utils if you think that should be changed.
I disagree. I'm using this GID (100500) for a couple of years starting from FC19, and no problems at all, it acts as a normal GID. But the actual problem is that it is trying to create a new group with the same GID as existing one. Simple enough to reproduce on installed system: -------------------------------------------------------- ~ omarchenko@kml18 [Mon Nov 09 16:56:04]∯ id uid=1001(omarchenko) gid=100500(kml) groups=100500(kml),10(wheel) ~ omarchenko@kml18 [Mon Nov 09 16:57:44]∯ sudo groupadd -g 100500 samplegroup [sudo] password for omarchenko: groupadd: GID '100500' already exists <<<<<< this is the message I get during installation process ~ omarchenko@kml18 [Mon Nov 09 16:58:55]∯ cat /etc/issue Fedora release 21 (Twenty One) -------------------------------------------------------- It does reproduce on any system I believe. the actual proplem (IMHO) is as follows: 1. Because I've set GID for the user to 100500, it firstly created a new user, AND a group for that user with the GID 100500. 2. After creating the user, it tries to create groups from the list, and fails because this GID is already used for the user group. To summarize: I expected that providing following info in that form during installation: ======================== V UID: 100500 V GID: 100500 Groups: samplegroup(100500) ======================== it will create a group with the name "samplegroup" and set it as users' default group, but instead it firstly created group with the name "user", and then failed to create "samplegroup" with the same GID. This is definitely anacondas' bug. Anaconda should perform a simple check and don't fail if the same GID is provided for a custom group as for the user, this should not crash all installation process.
https://github.com/rhinstaller/anaconda/pull/448
Another user experienced a similar problem: When installing Fedora-Live-Workstation-x86_64-23-10.iso, the installation freezes upon creating users (one root, one non root). My computer is a 4 proc (64 bits), a 500 Go hard disk and an already installed Ws 7 64 bits. regards, armel cmdline: /usr/bin/python3 /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base cmdline_file: BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-WS-x86_64-23-10 rootfstype=auto ro rd.live.image quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 hashmarkername: anaconda kernel: 4.2.3-300.fc23.x86_64 other involved packages: python3-libs-3.4.3-5.fc23.x86_64 package: anaconda-core-23.19.10-1.fc23.x86_64 product: Fedora reason: ValueError: GID 1000 already exists release: Fedora release 23 (Twenty Three) version: 23