问题原文
原帖链接 · piwi · CC BY-SA 3.0
I have a VPS that runs Ubuntu 14.04.4 LTS; it was installed as a whole with Plesk by OVH. I juste did a apt-get upgrade, and at some point I had a message regarding PAM. The system is in French, but basically it says:
At least one file of /etc/pam.d/common-{auth,account,password,session} was modified locally. Please indicate if local changes should be discarded and stick with the standard configuration. Otherwise you will have to configure the authentication system by yourself.
I decided to keep the local changes, and APT also reported:
pam-auth-update: Local modifications to /etc/pam.d/common-*, not updating.
pam-auth-update: Run pam-auth-update --force to override.
I want to know what are the differences between the local changes and the files the update wants to setup. How can I do that?
已采纳解答
原帖链接 · piwi · CC BY-SA 3.0
Because I did not want to alter the live configuration of PAM on the system, I ended up using a chroot jail to setup a default PAM configuration so I can view the differences:
# lsb_release --codename
Codename: trusty
# debootstrap trusty /tmp/foo
I: Retrieving Release
I: Retrieving Release.gpg
...
View the differences:
for f in common-{account,auth,password,session,session-noninteractive}; do
echo ==== $f ====
diff --unified /etc/pam.d/$f /tmp/foo/etc/pam.d/$f
done
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
