1 |
On Thursday 08 Jun 2017 16:56:21 Jörg Schaible wrote: |
2 |
> Mick wrote: |
3 |
> > On Thursday 08 Jun 2017 13:21:56 Jörg Schaible wrote: |
4 |
> >> > Yes, this seems to be the problem. Starting Kmail does not launch |
5 |
> >> > kwalletd5 and as a consequence kmail starts asking for each email |
6 |
> >> > account password separately. |
7 |
> >> > |
8 |
> >> > I guess until kmail:5 is installed I will have to start kwalletd5 by |
9 |
> >> > hand. |
10 |
> >> |
11 |
> >> My situation is different, since I use kwallet-pam. That one will start |
12 |
> >> kwallet5 automatically and I am not asked by KMail for passwords (after |
13 |
> >> it now also uses kwallet5). |
14 |
> > |
15 |
> > I'm puzzled: I have kde-plasma/kwallet-pam-5.8.6 installed, but it will |
16 |
> > *not* |
17 |
> > start kwalletd5. Bear in mind though, I do not run a full plasma desktop. |
18 |
> |
19 |
> Do you run SDDM? Do you have those two lines in it? |
20 |
> |
21 |
> -auth optional pam_kwallet5.so |
22 |
> -session optional pam_kwallet5.so auto_start |
23 |
|
24 |
Ha! Thanks for this hint! |
25 |
|
26 |
I had these entries in my /etc/pam.d/sddm |
27 |
|
28 |
-auth optional pam_kwallet.so kdehome=.kde4 |
29 |
-auth optional pam_kwallet5.so |
30 |
-session optional pam_kwallet.so |
31 |
-session optional pam_kwallet5.so auto_start |
32 |
|
33 |
but ... sddm has stopped working properly with enlightenment, which is my |
34 |
desktop of choice. So I started using lightdm and forgot to add these entries |
35 |
- TBH I thought they were not needed because everything worked as it should |
36 |
until now without them. |
37 |
|
38 |
So, I added the two lines you suggested and rebooted. I checked that |
39 |
kwalletd5 is running: |
40 |
|
41 |
$ ps axf | grep kwallet |
42 |
4515 pts/1 SN+ 0:00 \_ grep --color=auto kwallet |
43 |
4088 ? S 0:00 /usr/bin/kwalletd5 --pam-login 8 10 |
44 |
|
45 |
Nevertheless, kmail (akonadi resources in particular) asks for each IMAP4 |
46 |
account password to be entered when it launches, without asking for the |
47 |
kwalletd5 password (it is different to the login passwd of the user). |
48 |
|
49 |
So, I start kwalletmanager5 which dully advises me: |
50 |
|
51 |
"The wallet is currently closed" |
52 |
|
53 |
So, I click 'Open' and the 'KDE Wallet Service' pops up to ask me for the |
54 |
kwallet passwd. |
55 |
|
56 |
|
57 |
I now have more than one kwalletd5 running: |
58 |
|
59 |
$ ps axf | grep kwallet |
60 |
4623 pts/1 SNl+ 0:01 | \_ kwalletmanager5 |
61 |
4720 pts/2 SN+ 0:00 \_ grep --color=auto kwallet |
62 |
4088 ? S 0:00 /usr/bin/kwalletd5 --pam-login 8 10 |
63 |
4629 ? SNLl 0:01 /usr/bin/kwalletd5 |
64 |
|
65 |
|
66 |
I log out/in and notice I suddenly have two kwalletd5s running due to pam- |
67 |
login: |
68 |
|
69 |
$ ps axf | grep kwallet |
70 |
5063 pts/0 SN+ 0:00 \_ grep --color=auto kwallet |
71 |
4088 ? S 0:00 /usr/bin/kwalletd5 --pam-login 8 10 |
72 |
4960 ? S 0:00 /usr/bin/kwalletd5 --pam-login 8 10 |
73 |
|
74 |
|
75 |
So, I start kmail again and guess what? It starts asking for IMAP4 passwds |
76 |
all over again. <sigh ...> |
77 |
|
78 |
I start kwalletmanager5 and indeed the kwallet is currently ... closed! I |
79 |
click to open it, enter password and all works fine again. |
80 |
|
81 |
Now I have an even greater selection of kwalletd5 processes running: |
82 |
|
83 |
$ ps axf | grep kwallet |
84 |
5197 pts/0 SNl+ 0:01 | \_ kwalletmanager5 |
85 |
5411 pts/1 SN+ 0:00 \_ grep --color=auto kwallet |
86 |
4088 ? S 0:00 /usr/bin/kwalletd5 --pam-login 8 10 |
87 |
4960 ? S 0:00 /usr/bin/kwalletd5 --pam-login 8 10 |
88 |
5202 ? SNLl 0:00 /usr/bin/kwalletd5 |
89 |
|
90 |
|
91 |
I think I'll give up on this. It seems kwallet:4/5 is not working as intended |
92 |
on my set up. I hope by the time kdepim has moved from :4 to :5 things will |
93 |
work as intended. Until then I will keep the old kwallet:4 installed, because |
94 |
at least this works as always did. |
95 |
|
96 |
|
97 |
> Does your system password match the password of your wallet? |
98 |
|
99 |
No, all users have different kwallet and user login passwds. |
100 |
|
101 |
|
102 |
> > Running Krusader:5 and trying to connect to a remote system starts |
103 |
> > kwalletd5 fine, but running kmail:4 it does not. |
104 |
> |
105 |
> Does kmail:4 work after krusader:5 started kwallet5? |
106 |
|
107 |
Yes, because Krusader:5 calls kwalletd5 and asks for its password. Then this |
108 |
is available for all applications to use, including kmail:4. |
109 |
|
110 |
-- |
111 |
Regards, |
112 |
Mick |