Bug 2026916

Summary: It's possible to enter the root spoke if rootpw --lock is in kickstart
Product: Red Hat Enterprise Linux 9 Reporter: Jan Stodola <jstodola>
Component: anacondaAssignee: Vendula Poncova <vponcova>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: jikortus, jkonecny, vslavik
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-34.25.0.26-1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 12:30:45 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:
Bug Depends On:    
Bug Blocks: 1942219    

Description Jan Stodola 2021-11-26 13:12:43 UTC
Description of problem:
Based on [1], the "rootpw --lock" kickstart command should disable the root password screen:

"--lock - If this option is present, the root account is locked by default. This means that the root user will not be able to log in from the console. This option will also disable the Root Password screens in both the graphical and text-based manual installation."


However, if an incomplete kickstart is provided, anaconda allows to enter the root password spoke and change the settings. 

[1] https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9-beta/html/performing_an_advanced_rhel_installation/kickstart-commands-and-options-reference_choose-your-title-id#rootpw-required_kickstart-commands-for-system-configuration

Version-Release number of selected component (if applicable):
RHEL-9.0.0-20211124.3
anaconda-34.25.0.20-1.el9

How reproducible:
Always

Steps to Reproduce:
1. Start a kickstart installation with "rootpw --lock", do not specify the partitioning
2. Wait until the main hub shows.

Actual results:
Anaconda allows to enter the root password spoke and change the settings.

Expected results:
* The root password screen is disabled in both GUI and TUI OR
* The documentation is updated.

Comment 6 Jan Stodola 2022-02-14 09:13:09 UTC
Checked that anaconda-34.25.0.26-1.el9 is in nightly compose RHEL-9.0.0-20220210.0

Moving to VERIFIED

Comment 8 errata-xmlrpc 2022-05-17 12:30:45 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 (new packages: anaconda), 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-2022:2326