SDDM configuration for PAM with ecryptfs and kwallet

asked 2018-07-01 14:43:52 -0500

Michael W. gravatar image

I'm trying to unlock kwallet automatically at login. That worked as long my home was not encrypted. Now ecryptfs gets unlocked after trying to open kwallet with pam. See log:

Jul 01 21:01:23 localhost.localdomain sddm-helper[1487]: pam_kwallet5(sddm:auth): (null): pam_sm_authenticate                # <------- pam tries to open a file on non-mounted ecryptfs
Jul 01 21:01:23 localhost.localdomain sddm-helper[1490]: pam_kwallet5: Couldn't create directory: /home/damihe/.local because: 13-Permission denied
Jul 01 21:01:23 localhost.localdomain sddm-helper[1490]: pam_kwallet5: Couldn't open file: /home/damihe/.local/share/kwalletd/kdewallet.salt because: 2-No such file or directory
Jul 01 21:01:23 localhost.localdomain sddm-helper[1487]: pam_kwallet5(sddm:auth): pam_kwallet5: Couldn't create salt file
Jul 01 21:01:23 localhost.localdomain sddm-helper[1487]: pam_kwallet5: Couldn't open file: /home/damihe/.local/share/kwalletd/kdewallet.salt because: 2-No such file or directory
Jul 01 21:01:23 localhost.localdomain sddm-helper[1487]: pam_kwallet5(sddm:auth): pam_kwallet5: Fail into creating the hash
Jul 01 21:01:23 localhost.localdomain sddm-helper[1487]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Jul 01 21:01:23 localhost.localdomain sddm-helper[1492]: Passphrase file wrapped                                             # <------- Here ecryptfs gets unlocked
Jul 01 21:01:23 localhost.localdomain sddm-helper[1237]: pam_unix(sddm-greeter:session): session closed for user sddm

How can i change the order?

edit retag flag offensive close merge delete