Bug 1786680

Summary: Anaconda - Limit maximum UID is 4,294,967,294
Product: Red Hat Enterprise Linux 8 Reporter: Trung Hieu <thaygiaoth>
Component: anacondaAssignee: Vladimír Slávik <vslavik>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.1CC: jstodola, mhavrila, pzatko, rvykydal, sbueno, vslavik
Target Milestone: rc   
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-33.16.4.2-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:47:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
max uid 4,294,967,295 errors none

Description Trung Hieu 2019-12-27 06:49:11 UTC
Created attachment 1647999 [details]
max uid 4,294,967,295 errors

Description of problem:
When we create user and specify uid, although anaconda restrict maximum UID is 4,294,967,295 but it's still encounter errors

How reproducible:
Limit max UID is 4,294,967,294

Steps to Reproduce:
Modify code in
https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/core/users.py

Thank you!

Comment 1 Trung Hieu 2019-12-30 08:48:06 UTC
Additional info

Same as RHEL 8, RHEL 7.7 anaconda is automatically decrease max UID to 4,294,967,295

It's not encounter errors but it's not create user.

UID 4,294,967,294 is ok for create user

Comment 3 Jan Stodola 2020-10-01 19:46:20 UTC
BTW, the same problem needs to be fixed for GID.

Comment 4 Vladimír Slávik 2020-10-06 19:00:20 UTC
Note to self: There is something else besides the reported issue. Actual user creation happens in a module, and the UIDs/GIDs come from GUI via D-Bus... as signed 32-bit int... so capped at half the available range.

Comment 5 Vladimír Slávik 2020-10-07 13:26:25 UTC
Fix candidate PR: https://github.com/rhinstaller/anaconda/pull/2906

Comment 9 Marek Havrila 2020-11-25 12:35:22 UTC
Pre-verified with anaconda-33.16.4.2-1.el8.x86_64.

Comment 15 errata-xmlrpc 2021-05-18 15:47:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (anaconda bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1844