我正在使用 Ubuntu 16.04.5 LTS。我试图读取我的日志文件以查找错误。最有趣的是以下内容:
cat /var/log/auth.log | egrep "unable|faulty"
Nov 25 13:25:13 localhost su[4491]: PAM unable to dlopen(pam_winbind.so): /lib/security/pam_winbind.so: cannot open shared object file: No such file or directory
Nov 25 13:25:13 localhost su[4491]: PAM adding faulty module: pam_winbind.so
Nov 25 13:25:13 localhost systemd: PAM unable to dlopen(pam_winbind.so): /lib/security/pam_winbind.so: cannot open shared object file: No such file or directory
Nov 25 13:25:13 localhost systemd: PAM adding faulty module: pam_winbind.so
Nov 25 13:29:21 localhost smbd: PAM unable to dlopen(pam_winbind.so): /lib/security/pam_winbind.so: cannot open shared object file: No such file or directory
Nov 25 13:29:21 localhost smbd: PAM adding faulty module: pam_winbind.so
Nov 25 13:39:01 localhost CRON[5247]: PAM unable to dlopen(pam_winbind.so): /lib/security/pam_winbind.so: cannot open shared object file: No such file or directory
...
Nov 26 23:53:53 localhost lightdm: PAM adding faulty module: pam_kwallet.so
Nov 26 23:53:53 localhost lightdm: PAM unable to dlopen(pam_kwallet5.so): /lib/security/pam_kwallet5.so: cannot open shared object file: No such file or directory
Nov 26 23:53:53 localhost lightdm: PAM adding faulty module: pam_kwallet5.so
Nov 26 23:53:53 localhost lightdm: PAM unable to dlopen(pam_winbind.so): /lib/security/pam_winbind.so: cannot open shared object file: No such file or directory
...
系统完整性是正确的 -debsums --config --changed
不报告/etc/pam.d
目录中的任何更改。
未安装库文件:
$ dpkg -S pam_winbind.so
dpkg-query: no path found matching pattern *pam_winbind.so*
$ dpkg -S pam_kwallet.so
dpkg-query: no path found matching pattern *pam_kwallet.so*
$ dpkg -S pam_kwallet5.so
dpkg-query: no path found matching pattern *pam_kwallet5.so*
为什么这些消息存在于/var/log/auth.log
?我应该修复它们吗?
这些警告可以通过安装相应的软件包来删除:
但我得到了有趣的结果——我的用户只列在它的组中。
通过删除两个 kwallet 包解决了这个问题:
提到的 KWallet 问题在 LaunchPad 上被称为bug 1781418。
所以删除这些警告是个坏主意。我肯定也会删除 PAM winbind:
我只是想提一下,我遇到了一个类似的错误,与一个不同的包淹没了我的日记
... 等等 ...
找到它
apt-file
,显然它只是没有安装现在我实际上可以再次使用 journald 来调试真正的问题