标题: 解决PAM unable to dlopen(/usr/lib64/security/pam_sss.so)错误 [打印本页] 作者: linda 时间: 2022-2-11 11:30 标题: 解决PAM unable to dlopen(/usr/lib64/security/pam_sss.so)错误
Centos、华为EulerOS、Alibaba Cloud Linux系列
改变之后测试
# sudo date
# journalctl -r 或 journalctl -n
Feb 11 11:23:09 TrustGate.com sudo[110427]: PAM unable to dlopen(/usr/lib64/security/pam_sss.so): /usr/lib64/security/pam>
Feb 11 11:23:09 TrustGate.com sudo[110427]: PAM adding faulty module: /usr/lib64/security/pam_sss.so
修改配置文件
# cat /etc/pam.d/sudo
#%PAM-1.0
auth include system-auth
account include system-auth
password include system-auth
session include system-auth
注释掉/etc/pam.d/system-auth以及password-auth中所有包含sss的行
# cat /etc/pam.d/system-auth
# Generated by authselect on Sun Apr 25 03:14:44 2021
# Do not modify this file manually.
# journalctl -r 或 journalctl -n
Feb 11 11:24:48 TrustGate.com sudo[110462]: pam_unix(sudo:session): session opened for user root by root(uid=0)
Feb 11 11:24:48 TrustGate.com sudo[110462]: pam_unix(sudo:session): session closed for user root
================
# authselect current
Profile ID: sssd