Bug 2228387 - No authselect profile is selected on Minimal Install
Summary: No authselect profile is selected on Minimal Install
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: authselect
Version: 8.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Pavel Březina
QA Contact: sssd-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-02 10:06 UTC by Jing Huo
Modified: 2023-08-03 07:28 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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:


Note You need to log in before you can comment on or make changes to this bug.