Bug 1940124

Summary: Reboot after Fedora 34 install to VM, deletes root user and prompts for new user to be created.
Product: [Fedora] Fedora Reporter: Bill Sanford <bsanford>
Component: gnome-control-centerAssignee: Pete Walter <walter.pete>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: aday, awilliam, gnome-sig, walter.pete
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-19 15:25:59 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:

Description Bill Sanford 2021-03-17 16:12:05 UTC
Description of problem:
After the initial install of F34, in Settings -> Users -> Change "Live System User" to "admin." and added password to admin account. Added user 'test' with password as standard user. In User GUI, switched test user to Administrator. and switched admin to non admin account. When prompted, I restarted session and it logged out the admin account.  Tried to login as admin, and I got the "Welcome to Fedora" Live user install screen. Rebooted VM (Force reboot from Boxes) and got the Welcome to Fedora screen where there were no users and I had to give user information to setup first user. From here I went into users and confirmed I was only user (Bill) in system. Added test user with different password.

The second time I repeated this with Admin user "Bill" and user "test" it behaved as expected and retained the users that were created and could manage them without issue.

Version-Release number of selected component (if applicable):
Fedora-Workstation-Live-x86_64-34-20210316.n.103

How reproducible:
100%

Steps to Reproduce:
1. In description
2.
3.

Actual results:
After switch of Administration roles of admin and user, a reboot requires to create initial user.

Expected results:
After switch of Administration roles of admin and user, a reboot should let the existing users be used without having to initialize user. 

Additional info:

Comment 1 Bill Sanford 2021-03-18 18:46:42 UTC
As an update to this bug:

As soon as I install F34, I reboot and the "Live System User" (Default user install) is removed and I am prompted to setup a user that will be installed (supposedly) as root. With this new user, I have NO su access to do anything but can add software through the Software app in GNOME 40

Before the reboot, I have "liveuser:x:1000:1000:Live System User:/home/liveuser:/bin/bash" in /etc/passwd. After reboot I have "bill:x:1000:1000:Bill:/home/bill:/bin/bash"

Comment 2 Adam Williamson 2021-03-18 19:15:26 UTC
This sounds like it's all just working as intended.

the 'liveuser' user account is only intended to exist during the live session, it's not intended to exist after install. It's actually created by a script that runs only during the live system boot (livesys.service).

The user account you create during first boot of the installed system has administrator privileges via sudo. 'sudo su' should give you a root prompt, after entering the user's password. If you want direct 'su' access or the ability to log in as root directly you can then run 'passwd' to set a password on the root account.