On Thursday 08 Jun 2017 16:56:21 Jörg Schaible wrote: > Mick wrote: > > On Thursday 08 Jun 2017 13:21:56 Jörg Schaible wrote: > >> > Yes, this seems to be the problem. Starting Kmail does not launch > >> > kwalletd5 and as a consequence kmail starts asking for each email > >> > account password separately. > >> > > >> > I guess until kmail:5 is installed I will have to start kwalletd5 by > >> > hand. > >> > >> My situation is different, since I use kwallet-pam. That one will start > >> kwallet5 automatically and I am not asked by KMail for passwords (after > >> it now also uses kwallet5). > > > > I'm puzzled: I have kde-plasma/kwallet-pam-5.8.6 installed, but it will > > *not* > > start kwalletd5. Bear in mind though, I do not run a full plasma desktop. > > Do you run SDDM? Do you have those two lines in it? > > -auth optional pam_kwallet5.so > -session optional pam_kwallet5.so auto_start
Ha! Thanks for this hint! I had these entries in my /etc/pam.d/sddm -auth optional pam_kwallet.so kdehome=.kde4 -auth optional pam_kwallet5.so -session optional pam_kwallet.so -session optional pam_kwallet5.so auto_start but ... sddm has stopped working properly with enlightenment, which is my desktop of choice. So I started using lightdm and forgot to add these entries - TBH I thought they were not needed because everything worked as it should until now without them. So, I added the two lines you suggested and rebooted. I checked that kwalletd5 is running: $ ps axf | grep kwallet 4515 pts/1 SN+ 0:00 \_ grep --color=auto kwallet 4088 ? S 0:00 /usr/bin/kwalletd5 --pam-login 8 10 Nevertheless, kmail (akonadi resources in particular) asks for each IMAP4 account password to be entered when it launches, without asking for the kwalletd5 password (it is different to the login passwd of the user). So, I start kwalletmanager5 which dully advises me: "The wallet is currently closed" So, I click 'Open' and the 'KDE Wallet Service' pops up to ask me for the kwallet passwd. I now have more than one kwalletd5 running: $ ps axf | grep kwallet 4623 pts/1 SNl+ 0:01 | \_ kwalletmanager5 4720 pts/2 SN+ 0:00 \_ grep --color=auto kwallet 4088 ? S 0:00 /usr/bin/kwalletd5 --pam-login 8 10 4629 ? SNLl 0:01 /usr/bin/kwalletd5 I log out/in and notice I suddenly have two kwalletd5s running due to pam- login: $ ps axf | grep kwallet 5063 pts/0 SN+ 0:00 \_ grep --color=auto kwallet 4088 ? S 0:00 /usr/bin/kwalletd5 --pam-login 8 10 4960 ? S 0:00 /usr/bin/kwalletd5 --pam-login 8 10 So, I start kmail again and guess what? It starts asking for IMAP4 passwds all over again. <sigh ...> I start kwalletmanager5 and indeed the kwallet is currently ... closed! I click to open it, enter password and all works fine again. Now I have an even greater selection of kwalletd5 processes running: $ ps axf | grep kwallet 5197 pts/0 SNl+ 0:01 | \_ kwalletmanager5 5411 pts/1 SN+ 0:00 \_ grep --color=auto kwallet 4088 ? S 0:00 /usr/bin/kwalletd5 --pam-login 8 10 4960 ? S 0:00 /usr/bin/kwalletd5 --pam-login 8 10 5202 ? SNLl 0:00 /usr/bin/kwalletd5 I think I'll give up on this. It seems kwallet:4/5 is not working as intended on my set up. I hope by the time kdepim has moved from :4 to :5 things will work as intended. Until then I will keep the old kwallet:4 installed, because at least this works as always did. > Does your system password match the password of your wallet? No, all users have different kwallet and user login passwds. > > Running Krusader:5 and trying to connect to a remote system starts > > kwalletd5 fine, but running kmail:4 it does not. > > Does kmail:4 work after krusader:5 started kwallet5? Yes, because Krusader:5 calls kwalletd5 and asks for its password. Then this is available for all applications to use, including kmail:4. -- Regards, Mick
signature.asc
Description: This is a digitally signed message part.