You are not logged in.

#1 2022-10-13 11:11:24

cadred
Member
Registered: 2022-10-13
Posts: 2

kded5 / kwallet wont autologin password on startup

Hello,

I cannot get kwallet to auto-login to my wifi and vpn on startup.  The connection/vpn is configured to automatically connect on startup. My user password and my kwallet password are the same.  I installed kwallet-pam from the user repository with yay. I am using lightdm and followed the instructions in the wiki to configure pam.  I added the necessary lines to /etc/pam.d/lightdm and /etc/pam.d/lightdm-autologin.  I still get a window that pops up saying kded5 needs me to enter my password for kwallet. 

I can't find anything about kded5 on the wiki. The ~/.config/kded5rc file didn't provide any useful info.  I tried disabling kwallet but then I had to enter in the password manually for the connection so it didn't really solve my problem. 

I do see on the kwallet wiki page about unlocking kwallet automatically in a window manager.  It says

      "To unlock KWallet protected by the login password, it is necessary to add

               exec --no-startup-id /usr/lib/pam_kwallet_init

       to the configuration file of the window manager in addition to configuring PAM."

I'm guessing they are talking about Kwin since I am using KDE plasma but exactly which file am I supposed to append that line to? ~/.config/kwinrc? ~/.config/kwinrulesrc? Or another? 

Any insight would be appreciated.  Thanks for reading:)

Last edited by cadred (2022-10-13 11:11:53)

Offline

#2 2022-10-13 11:21:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: kded5 / kwallet wont autologin password on startup

Post the contents of the actual files you've adjusted. Are you using auto-login from lightdm? Afaik you can't generally make this work with autologin and you either need to provide your password by logging in via the DM or afterwards for unlocking the wallet anyway.

The additional note you see should not be relevant for KWin as that will start pam_kwallet itself anyway.

FWIW this works properly here with SDDM.

Last edited by V1del (2022-10-13 11:21:40)

Offline

#3 2022-10-14 01:11:10

cadred
Member
Registered: 2022-10-13
Posts: 2

Re: kded5 / kwallet wont autologin password on startup

Here's this -

      cat /etc/pam.d/lightdm
      #%PAM-1.0
      auth        include     system-login
      auth        optional    pam_gnome_keyring.so
      auth        optional    pam_kwallet5.so
      auth        optional    pam_kwallet.so

      account     include     system-login

      password    include     system-login

      session     include     system-login
      session     optional    pam_gnome_keyring.so auto_start
      session     optional    pam_kwallet5.so auto_start
      session     optional    pam_kwallet.so
      session     optional    pam_kwallet5.so

and this-

      cat /etc/pam.d/lightdm-autologin
      #%PAM-1.0
      auth        required    pam_env.so
      auth        required    pam_faillock.so preauth
      auth        required    pam_shells.so
      auth        required    pam_nologin.so
      auth        [success=1 default=ignore]  pam_succeed_if.so user ingroup autologin
      auth        required    pam_unix.so
      auth        required    pam_permit.so
      auth        optional    pam_gnome_keyring.so
      auth        optional    pam_kwallet5.so

      account     include     system-local-login

      password    include     system-local-login

      session     include     system-local-login
      session     optional    pam_gnome_keyring.so auto_start
      session     optional    pam_kwallet5.so auto_start

I was using SDDM but there was an issue with it making me wait for 1 minute 30 seconds every time I shut down or rebooted.  I tried to fix this but the only thing that worked was to enable lightdm.

Thanks for helping smile

Last edited by cadred (2022-10-14 01:47:35)

Offline

Board footer

Powered by FluxBB