[SOLVED] PAM unable to dlopen(pam_cap.so)

Archived topics about LMDE 1
Forum rules
LMDE 2 support ends on 1-1-2019
Locked
Hansl
Level 2
Level 2
Posts: 91
Joined: Fri Dec 09, 2011 3:50 pm

[SOLVED] PAM unable to dlopen(pam_cap.so)

Post by Hansl » Tue Jan 19, 2016 5:43 am

I have to admit that on this one machine I did bungle the upgrade from LMDE to LMDE2:  Stupid me forgot Step 1, pointing the the APT sources to Jessie before doing the rest up to dist-upgrade…  When I finally noticed this, I repeated the process correctly and it seems to be quite fine now — except an authentication problem:  mintupdate, auto-mounting of USB-drives and shutting down do not work anymore, I have to sudo these.

Looking in /var/log/auth.log I find lines like
PAM unable to dlopen(pam_cap.so): /lib/security/pam_cap.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
Obviously PAM's setup got mixed up. Any ideas how I could fix this now?

Thanks, Hans

(Yes I know a fresh install would have been better. But on a heavily used machine it is a LOT of work to set it up again like before. So I very much like rolling releases!)
Last edited by Hansl on Wed Jan 20, 2016 1:21 pm, edited 1 time in total.

User avatar
Zill
Level 3
Level 3
Posts: 168
Joined: Tue Sep 20, 2011 11:15 am
Location: Lincolnshire, UK

Re: PAM unable to dlopen(pam_cap.so)

Post by Zill » Tue Jan 19, 2016 7:46 am

I suggest you first back-up the original PAM config for safety and then reconfigure PAM to defaults with the following two commands:

Code: Select all

sudo cp -a /etc/pam.d /etc/pam.d_bak
sudo pam-auth-update --force
Beware that this does change files in pam.d, so if you have a customized PAM configuration, prepare to be able to compare the changes done and fix things afterwards.

Hansl
Level 2
Level 2
Posts: 91
Joined: Fri Dec 09, 2011 3:50 pm

Re: PAM unable to dlopen(pam_cap.so)

Post by Hansl » Wed Jan 20, 2016 1:20 pm

Yay! All is well again, thank you Zill!
pam-auth-update made its own backup copies *.pam-old so the first step wasn't needed at all.
Just for information, the changed files/lines in /etc/pam.d were —
• in  common-auth  removal of  auth optional pam_cap.so
• in  common-password  from  pam_mate_keyring.so  to  pam_gnome_keyring.so
• in  common-session  added  session optional pam_systemd.so

Thanks again, Hans

Hansl
Level 2
Level 2
Posts: 91
Joined: Fri Dec 09, 2011 3:50 pm

Re: [SOLVED] PAM unable to dlopen(pam_cap.so)

Post by Hansl » Wed Jan 20, 2016 1:38 pm

I just read http://forums.linuxmint.com/viewtopic.p ... 4&t=206953 — the cause probably was not me being sloppy, but that I changed to mirror repos during upgrade! Well, I'm relieved, no Alzheimer yet after all…

Locked

Return to “LMDE 1 Archive”