Bug 696639

Summary: Can't create first user with custom uid/gid
Product: [Fedora] Fedora Reporter: Olivier MenguĂ© <olivier.mengue>
Component: firstbootAssignee: Martin Gracik <mgracik>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: bcl, dcantrell, dmach, mgracik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-14 14:47:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Olivier Mengué 2011-04-14 13:50:52 UTC
Description of problem:

During a clean install of Fedora 14 using the standard interactive setup it is not possible to create the first user ("Create User" scree) using a custom uid/gid.

I want to create the initial user with a uid=1024/gid=1024 because that those numbers are my sttings on a NFS mount.

Version-Release number of selected component (if applicable):
Fedora 14.


How reproducible:
Always.

Steps to Reproduce:
1. Launch Fedora setup on a new system
2. On the "Create User" screen, enter the username "toto"
3. Click "Advanced..." (as suggested by the text), system-config-users
4. In system-config-users, create user "toto", uid=1024, gid=1024
5. Close system-config-users
6. Click "Forward"
  
Actual results:
- The setup asks: "A home directory for user toto already exists. Would you like to continue, making the new user the owner of this directory and all its contents? Doing so
- When clicking "no", the user is blocked on the "Create User" screen (not possible to skip the screen)
- When clicking "yes", a user "toto" is created with uid=500,gid=500 overriding the uid/gid selected by the user.

Expected results:
The setup should detect that the given user has already been created in system-config-users and not try to create it anyway.
The password fields should not be required if the user has been created in system-config-users.

Additional info:

The same problem happens when the user has been on the screen after "Create User" ("Date and Time") and clicks on the "Back" button: the user must delete the previously created user with system-config-users before clicking on "Forward".

The workaround is to create

Comment 1 Martin Gracik 2011-04-14 14:47:03 UTC
If you create a user in the advanced window, you should leave the text entries in the create user screen empty.