Red Hat Bugzilla – Bug 200695
firstboot shows an already created user
Last modified: 2018-10-03 15:22:57 EDT
Description of problem:
After using Anaconda kickstart, adding a user in %post with password, firstboot
create user dialog shows the created user already in it's dialog. I think this
shouldn't be happenning.
I see no reason firstboot would gather the name of the already-present user.
Is there anything specific why firstboot does this?
I will file this as a bug.
Version-Release number of selected component (if applicable):
Use Anaconda's kickstart, then create a user in %post with useradd and usermod.
Firstboot create user dialog shows that user at boot time.
Steps to Reproduce:
1. Add a user in Anaconda's kickstart %post
Firstboot provides already created username in it's create user dialog.
Empty fields for new user account
There is no additional information at this time.
What user is it showing, and what parameters are you using to create the new
user? I've seen this before when certain packages create users sloppily, in
which case it's a packaging problem. We might still be making an assumption
that's just not right in firstboot though.
Here is the entire %post section of the kickstart file:
# Default user password: kadischi
usermod -p '$1$gRE3sr6Y$2LKJsTzKnKumg2/noieRR1' kadischi
It does look a bit sloppy as you describe, with nothing more than a username
specified to useradd. I'll check out more lengthy options to useradd and report
any further success or failure.
Since you're not specifying a UID for the new user, I think it defaults to 500.
In firstboot's new user module, it automatically fills in the UI if it finds a
user with that UID. Seems pretty goofy to me, so this is fixed in Rawhide now.
By the way, kickstart now supports adding users via the "user" command which we
added in time for FC6.
Ok thank you Chris Lumens much appreciated work you're doing there.