'authselect check' or 'authselect apply-changes' command throws "[error] Unexpected changes to the configuration were detected"
Issue
- When manual changes are performed on /etc/pam.d/password-auth or /etc/pam.d/system-auth 'authselect apply-changes' gives below error.
#authselect apply-changes
[error] [/etc/authselect/system-auth] has unexpected content!
[error] [/etc/authselect/password-auth] has unexpected content!
[error] Unexpected changes to the configuration were detected.
[error] Refusing to activate profile unless those changes are removed or overwrite is requested.
Some unexpected changes to the configuration were detected. Use 'select' command instead.
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- authselect
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.