在新机器上安装 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 模块
关于ubuntu - PAM 无法 dlopen(pam_slurm.so) : libslurm. so.35:无法打开共享对象文件:没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69538221/