su:authentication失败

我有Ubuntu 14.04服务器上,我不能使用任何依赖su 。 这表明无法重新启动服务甚至切换用户。

 root@ci-web1:~# su - mxx su: Authentication failure 

我的/var/log/auth.log显示:

 Oct 10 11:14:15 ci-web1 su[19709]: PAM unable to dlopen(pam_rootok.so): /lib/security/pam_rootok.so: cannot open shared object file: No such file or directory Oct 10 11:14:15 ci-web1 su[19709]: PAM adding faulty module: pam_rootok.so Oct 10 11:14:15 ci-web1 su[19709]: PAM unable to dlopen(pam_unix.so): /lib/security/pam_unix.so: cannot open shared object file: No such file or directory Oct 10 11:14:15 ci-web1 su[19709]: PAM adding faulty module: pam_unix.so Oct 10 11:14:15 ci-web1 su[19709]: pam_authenticate: Authentication failure Oct 10 11:14:15 ci-web1 su[19709]: FAILED su for mxx by root Oct 10 11:14:15 ci-web1 su[19709]: - /dev/pts/0 root:mxx 

这两个文件都存在于/lib/x86_64-linux-gnu/security/ 。 我不明白为什么它在/lib/security/查找。

如何纠正这个问题?

在经过了多次输出和反复试验之后,发现了罪魁祸首。 在程序包更新期间的某个时刻, login程序包和libpcre3模块之间的依赖链接libpcre3 。 重新安装该特定模块以恢复依赖关系链接后,现在再次工作。