You are not logged in.

#1 2010-06-07 21:10:57

c0rv1d
Member
From: South Africa
Registered: 2009-03-12
Posts: 14

Unable to get Gnome-Keyring working with nm-applet

Hi guys

I've installed openbox and using NetworkManager/nm-applet to manage my network connections.
I prefer it over other utils as it has good support for mobile connections etc.

I'm using qingy as my login manager.

I have added the following to /etc/pam.d/qingy

auth       optional     /lib/security/pam_gnome_keyring.so
session    optional     /lib/security/pam_gnome_keyring.so  auto_start

and the following to /etc/pam.d/passwd

password    optional    pam_gnome_keyring.so

as per the network manager wiki http://wiki.archlinux.org/index.php/Net … fter_login

I have the following in my session login script:

nm-applet --sm-disable &

I think if I remember correctly, the Gnome keyring dialog popped up once or twice in the beginning, but now it never happens. nm applet now always requests my WPA key upon login.

My intention is to have the key stored in gnome-keyring so that I don't have to enter it every time I log in.

Any help would be greatly appreciated.

Offline

#2 2010-06-07 21:24:00

dieghen89
Member
From: Italy
Registered: 2009-06-24
Posts: 134

Re: Unable to get Gnome-Keyring working with nm-applet

I've opened the same thread 2 days ago wink


XPS 13 DE 2015 + K*5
"Machines are so stupid that if you tell them to do something perfect, they'll do it"

Offline

#3 2010-06-07 21:58:18

c0rv1d
Member
From: South Africa
Registered: 2009-03-12
Posts: 14

Re: Unable to get Gnome-Keyring working with nm-applet

Hi dieghen89

Nice to know I'm not the only one pulling out hair over here smile

I was playing around and did the following:
1. Exit nm-applet completely
2. $ gnome-keyring-daemon --start //I know that the daemon is running. --help states that it starts or initialize an already running daemon
3. Run nm-applet again

And the keyring dialog actually did pop up asking for the password to unlock it.
Now I thought a quick-fix would be to add gnome-keyring-daemon --start to my startup script before nmapplet &

But alas. doesn't work hmm

Offline

#4 2010-06-07 22:10:35

c0rv1d
Member
From: South Africa
Registered: 2009-03-12
Posts: 14

Re: Unable to get Gnome-Keyring working with nm-applet

Ok, even if I just kill nm-applet and start it from the command line again, the keyring dialog pops up...

Offline

#5 2010-06-07 22:12:52

dieghen89
Member
From: Italy
Registered: 2009-06-24
Posts: 134

Re: Unable to get Gnome-Keyring working with nm-applet

No the solution is create the polkit file as is written in the wiki....There is no need of keyrings daemon and other things...Also the pam modifies are useless...


XPS 13 DE 2015 + K*5
"Machines are so stupid that if you tell them to do something perfect, they'll do it"

Offline

#6 2010-06-08 18:19:34

c0rv1d
Member
From: South Africa
Registered: 2009-03-12
Posts: 14

Re: Unable to get Gnome-Keyring working with nm-applet

Well, I did the following:

Place the following in /etc/polkit-1/localauthority/50-local.d/10-org-freedesktop-network-manager-settings.pkla

[Allow user YOURUSERNAME to create wireless connections for all users]
Identity=unix-user:derek
Action=org.freedesktop.network-manager-settings.system.modify
ResultAny=no
ResultInactive=no
ResultActive=yes

Had to create 10-org-freedesktop-network-manager-settings.pkla - didn't exist

But it still asked for my wireless key and the "Available for all users" check box is still disabled sad

Am I missing something here?

Offline

#7 2010-06-08 18:29:53

dieghen89
Member
From: Italy
Registered: 2009-06-24
Posts: 134

Re: Unable to get Gnome-Keyring working with nm-applet

Mmh i haven't other ideas ....I solved with that method after 2 days of search and attempts...the only idea that come now is to check if you have the package polkit installed....


XPS 13 DE 2015 + K*5
"Machines are so stupid that if you tell them to do something perfect, they'll do it"

Offline

#8 2010-06-08 18:42:52

c0rv1d
Member
From: South Africa
Registered: 2009-03-12
Posts: 14

Re: Unable to get Gnome-Keyring working with nm-applet

Yup, it's installed. One thing to note though:
if I type cat /etc/polkit-1/localauthority/50-local.d/10-org-freedesktop-network-manager-settings.pkla as my account, I get an access denied (file permissions)

Does this polkit daemon or whatever it is run in the user space? I mean, shouldn't I make the file readable to my user or should I leave it unaccessable for security purposes?

Offline

#9 2010-06-08 18:51:59

dieghen89
Member
From: Italy
Registered: 2009-06-24
Posts: 134

Re: Unable to get Gnome-Keyring working with nm-applet

From my users I can't reach that folders so i suppose only root can....And so works in my system....

[root@eeepc ~]# ls -l /etc/polkit-1/localauthority/50-local.d/
totale 4
-rw-r--r-- 1 root root 206  8 giu 20.25 10-org-freedesktop-network-manager-settings.pkla

Last edited by dieghen89 (2010-06-08 18:52:17)


XPS 13 DE 2015 + K*5
"Machines are so stupid that if you tell them to do something perfect, they'll do it"

Offline

#10 2010-06-08 19:31:04

c0rv1d
Member
From: South Africa
Registered: 2009-03-12
Posts: 14

Re: Unable to get Gnome-Keyring working with nm-applet

Mmmm. I'm at lost as well sad

Btw, I really like you blog. Just a pity I can't understand anything smile But I would have loved to read the post about Notify OSD and making it look nice

Offline

#11 2010-06-08 19:49:59

dieghen89
Member
From: Italy
Registered: 2009-06-24
Posts: 134

Re: Unable to get Gnome-Keyring working with nm-applet

It's strange because I've tried a lot of things to solve this problem and now i removed all things i had installed....Now i have only gnome-keyring because it is a dependency of libgnome-keyring that is a dependency of network-manager-applet....But i don't start the daemon....Also in /etc/pam.d i removed all the lines that i've added before to unlock the keyring....

My blog is written obliviously italian wink It is a lot of time that I think this thing...Now i've added a widget to translate the blog smile


XPS 13 DE 2015 + K*5
"Machines are so stupid that if you tell them to do something perfect, they'll do it"

Offline

Board footer

Powered by FluxBB