Bug 2228387

Summary: No authselect profile is selected on Minimal Install
Product: Red Hat Enterprise Linux 8 Reporter: Jing Huo <jhuo>
Component: authselectAssignee: Pavel Březina <pbrezina>
Status: NEW --- QA Contact: sssd-qe
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.8   
Target Milestone: rc   
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: 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 Jing Huo 2023-08-02 10:06:41 UTC
Description of problem:
Same issue as Bug 2190340

Version-Release number of selected component (if applicable):
RHEL 8.8

How reproducible:
always

Steps to Reproduce:

Install RHEL 8 with minimal install

# ls -l /etc/authselect/
total 4
drwxr-xr-x. 2 root root    6 Dec  6  2022 custom
-rw-r--r--. 1 root root 2120 Jul 27 10:32 user-nsswitch.conf
# authselect current
No existing configuration detected.
[root@localhost ~]# authselect select sssd
[error] File [/etc/pam.d/system-auth] exists but it needs to be overwritten!
[error] File [/etc/pam.d/password-auth] exists but it needs to be overwritten!
[error] File [/etc/pam.d/fingerprint-auth] exists but it needs to be overwritten!
[error] File [/etc/pam.d/smartcard-auth] exists but it needs to be overwritten!
[error] File [/etc/pam.d/postlogin] exists but it needs to be overwritten!
[error] File [/etc/nsswitch.conf] exists but it needs to be overwritten!
[error] File that needs to be overwritten was found
[error] Refusing to activate profile unless this file is removed or overwrite is requested.

Some unexpected changes to the configuration were detected.
Use --force parameter if you want to overwrite these changes.
# authselect select minimal
[error] File [/etc/pam.d/system-auth] exists but it needs to be overwritten!
[error] File [/etc/pam.d/password-auth] exists but it needs to be overwritten!
[error] File [/etc/pam.d/fingerprint-auth] exists but it needs to be overwritten!
[error] File [/etc/pam.d/smartcard-auth] exists but it needs to be overwritten!
[error] File [/etc/pam.d/postlogin] exists but it needs to be overwritten!
[error] File [/etc/nsswitch.conf] exists but it needs to be overwritten!
[error] File that needs to be overwritten was found
[error] Refusing to activate profile unless this file is removed or overwrite is requested.

Some unexpected changes to the configuration were detected.
Use --force parameter if you want to overwrite these changes.

Actual results:
When running "authselect select <profile> for the first time after RHEL 8 is installed, authselect complains unexpected changes.

Expected results:
authselect should not complain unexpected content with "Minimal Install".


Additional info: