PAM 无法 dlopen(pam_slurm.so): libslurm.so.35: 无法打开共享对象文件: 没有这样的文件或目录

PAM unable to dlopen(pam_slurm.so): libslurm.so.35: cannot open shared object file: No such file or directory

在新机器上安装 slurm 并尝试限制 ssh 访问后,我收到错误:

Oct 12 11:29:00 localhost sshd[5087]: PAM unable to dlopen(pam_slurm.so): libslurm.so.35: cannot open shared object file: No such file or directory
Oct 12 11:29:00 localhost sshd[5087]: PAM adding faulty module: pam_slurm.so
Oct 12 11:29:00 localhost sshd[5087]: fatal: Access denied for user test by PAM account configuration [preauth]

libslurm.so.35位于/usr/local/lib,也加入PATH.

但是,在不同的服务器上出现以下错误:

Oct 11 19:08:12 node-cpu-02 pam_slurm[13762]: Unable to dlopen libslurm.so.35.0.0: libslurm.so.35.0.0: cannot open shared object file: No such file or directory
Oct 11 19:08:12 node-cpu-02 pam_slurm[13762]: access granted for user test (uid=3010)

但 ssh 限制有效。

有没有人遇到过类似的问题?

谢谢!

解决方案就是重建 pam 模块