报错代码:
[error] [/....../system-auth] has unexpected content!
[error] [/....../password-auth] has unexpected content!
[error] [/....../nsswitch.conf] 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.
解决方法 (创建新的 authselect 文件):
步骤一:移走原来的 authselect 文件
# mv /etc/authselect/custom/password-policy /etc/authselect/custom/password-policy-backup
步骤二:创建新的 authselect 的文件
# authselect create-profile password-policy -b sssd --symlink-meta --symlink-pam
步骤三:使用新创建的 authselect 文件
# authselect select custom/password-policy with-sudo with-faillock without-nullok with-mkhomedir --force
步骤四:启用 oddjob 服务
# dnf install oddjob ; systemctl enable --now oddjobd.service
步骤五:启用新的 authselect 文件
# authselect apply-changes