Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: When performing unattended installation for fedora33 Workstation and passing only user-password-file and not the admin-password-file option the root account is usable and with an empty password. Version-Release number of selected component (if applicable): Version : 3.2.0 Release : 2.fc33 How reproducible: Always Steps to Reproduce: 1. virt-install --connect qemu:///system --name test --os-variant fedora33 --memory 5120 --quiet --disk size=10,format=qcow2 --noautoconsole --wait -1 --install os=fedora33 --graphics spice,listen=127.0.0.1 --graphics vnc,listen=127.0.0.1 --unattended profile=desktop,user-password-file=/tmp/tmp.J0ljfGZ8bG,user-login=kkoukiou 2. The password file is just like this: cat /tmp/tmp.J0ljfGZ8bG PwcD3PjU8nRi5V7 Actual results: Root account is not locked and has an empty password. This is from inside the VM: [kkoukiou@test ~]$ sudo cat /etc/shadow | grep root [sudo] password for kkoukiou: root::18738:0:99999:7::: [kkoukiou@test ~]$ sudo passwd -S root root NP 2021-04-21 0 99999 7 -1 (Empty password.) Expected results: Root account will be locked. If my expectation is wrong should we maybe clear this out in the man page?
*** This bug has been marked as a duplicate of bug 1952157 ***