Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[IGNORED] kwallet-pam not unlocking plasma wallet
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
alacheesu
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2005
Posts: 113

PostPosted: Mon Aug 21, 2017 2:53 pm    Post subject: [IGNORED] kwallet-pam not unlocking plasma wallet Reply with quote

Edit: After looking at it again I found that the configuration below does indeed work if I log into a full plasma session, but it does not work for an Xmonad session so apparently something beyond the wiki guide is needed if you're not running plasma. I found an acceptable (in my case) workaround by giving kdewallet an empty password and making sure kwalletd5 is started on login. With an empty password the wallet is automatically opened.

I had a working setup where kwallet-pam made sure the KDE4 wallet was automatically unlocked on login. Now that kwalletd is masked for removal I'm trying to migrate to kwalletd5, but for the life of me I cannot make kwallet-pam unlock my wallet on login. My wallet is called kdewallet, has the same password as my user and I do not have gpg support compiled in.

I have plasma-desktop installed, but not the full kde-meta (I run Xmonad).

Here is my setup (i run ~amd64):
Code:
[ebuild   R    ] kde-frameworks/kwallet-5.37.0:5/5.37::gentoo  USE="man -debug -doc -gpg {-test}" 0 KiB
[ebuild   R    ] kde-plasma/kwallet-pam-5.10.4:5::gentoo  USE="-debug" 0 KiB
[ebuild   R    ] kde-apps/kwalletmanager-17.08.0:5::gentoo  USE="handbook -debug" 733 KiB


Contents of /etc/pam.d/sddm
Code:

#%PAM-1.0

auth        include     system-login
account     include     system-login
password    include     system-login
session     include     system-login
-auth       optional    pam_kwallet5.so
-session    optional    pam_kwallet5.so auto_start
-auth       optional    pam_kwallet.so kdehome=.kde4
-session    optional    pam_kwallet.so auto_start


~/.config/kwalletrc
Code:
[Wallet]
First Use=false


Relevant lines in /var/log/messages
Code:

Aug 21 16:31:49 sddm-helper[19179]: PAM unable to dlopen(/lib64/security/pam_systemd.so): /lib64/security/pam_systemd.so: cannot open shared object file: No such file or directory
Aug 21 16:31:49 sddm-helper[19179]: PAM adding faulty module: /lib64/security/pam_systemd.so
Aug 21 16:31:49 sddm-helper[19179]: PAM unable to dlopen(/lib64/security/pam_elogind.so): /lib64/security/pam_elogind.so: cannot open shared object file: No such file or directory
Aug 21 16:31:49 sddm-helper[19179]: PAM adding faulty module: /lib64/security/pam_elogind.so
Aug 21 16:31:49 sddm-helper[19179]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
Aug 21 16:31:53 sddm-helper[19231]: pam_kwallet5(sddm:auth): (null): pam_sm_authenticate
Aug 21 16:31:53 sddm-helper[19231]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Aug 21 16:31:53 sddm-helper[19231]: pam_unix(sddm:session): session opened for user <name removed> by (uid=0)
Aug 21 16:31:53 sddm-helper[19231]: pam_ck_connector(sddm:session): nox11 mode, ignoring PAM_TTY :0
Aug 21 16:31:53 sddm-helper[19231]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_open_session
Aug 21 16:31:53 sddm-helper[19231]: pam_kwallet5(sddm:session): pam_kwallet5: final socket path: /tmp/kwallet5_<name removed>.socket
Aug 21 16:31:53 sddm-helper[19179]: pam_unix(sddm-greeter:session): session closed for user sddm


Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum