automatically unlock this keyring is gray in linux mint 16

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
cguo
Level 1
Level 1
Posts: 2
Joined: Sun Apr 27, 2014 5:45 pm

automatically unlock this keyring is gray in linux mint 16

Postby cguo » Wed May 07, 2014 6:21 pm

Hi:
I use linux mint 16 mate. And I put my password in my network manager wifi setting. Because I do not want to input password everytime, I uncheck
Ask for this password every time
, and then it pops up a box to ask me to choose password for new keyring and says that
an application wants to create a new keyring called 'Default'. Choose the password you want to use for it
. Then I enter the password for new keyring. However, every time I shutdown and reboot my computer, a box pops up and ask me to
enter password for keyring 'Default' to unlock An application wants access to the keyring 'Default', but it is locked
, then click Details on the bottom left coner and I see
automatically unlock this keyring whenever I'm logged in
. That is what I want, because I do not want to enter password for keyring everytime. Nonetheless, such option is grayed out, I can not choose it.

Any solution?

User avatar
mdavies5
Level 3
Level 3
Posts: 154
Joined: Sat Aug 11, 2012 1:02 am

Re: automatically unlock this keyring is gray in linux mint

Postby mdavies5 » Fri May 09, 2014 10:24 pm

I had exactly same problem and search on google gave many solutions which did not work. Here is what worked for me. It was a permissions problem. The keyrings are stored in /Home/.local/share/keyrings. You must be the owner of this directory with write permissions and the sudo group must also have write permissions. All the files in this directory should be owned by you with write permissions and group should have permissions NONE.
What happened in my case is that I use a HOME directory on a separate partition. When I re-install Mint I run a script on this home directory to give me complete ownership and permissions. Therefore sudo did not have access to the keyring. Every time I wanted to open an app with sudo permissions the app asked for the password to open the keyring but it could not access the keyring. It then asked for a new password and confirmation to create a default keyring. It then opened my app but could not save the keyring file but gave no warning. Once I gave sudo access to the directory everything worked as expected. Any attempt to open an app as sudo will ask for the password only once per session.
In your keyring you should have at least 3 files: default.keyring, login.keyring, user.keystore, user.keystore.<uid>.
If you go to Menu/Preferences/Passwords and Keywords. In 'View' click 'By Keyring' and 'Show Any'. You should see at least 2 entries under 'Passwords', Login and default with locked padlocks against them. Now got to Menu/Administration and select 'Users and Groups'. You will be asked for a user password and when this is entered you will see the 'default' padlock will unlock.
Now go to the 'Login' password, right click and select 'Set as Default' if it is not greyed out. If you are asked for a password it will be your login password.
Hope this helps.
Cheers, Mike

cguo
Level 1
Level 1
Posts: 2
Joined: Sun Apr 27, 2014 5:45 pm

Re: automatically unlock this keyring is gray in linux mint

Postby cguo » Sat May 10, 2014 3:14 pm

Thank you. However there is a lot of problem:
1. I can not find $HOME/.local/share/keyrings, there is no such directory. Instead, I find $HOME/.config/mate/keyrings directory, but there is just tow files, default and default.keyrings.
2. I can not find Menu/Preferences/Passwords and Keywords, there is no Passwords and Keywords under Preferences

Moreover, I also enable auotmatic login, and install /home in a different partition.

User avatar
mdavies5
Level 3
Level 3
Posts: 154
Joined: Sat Aug 11, 2012 1:02 am

Re: automatically unlock this keyring is gray in linux mint

Postby mdavies5 » Sat May 10, 2014 10:28 pm

You are using Mate, I am using Cinnamon. Main point is, make sure sudo has write permissions on /.config/mate/keyrings. This worked for me but maybe you have a different problem.
Cheers, Mike

Chrisnz
Level 2
Level 2
Posts: 62
Joined: Sun May 20, 2012 6:08 am
Location: New Zealand

Re: automatically unlock this keyring is gray in linux mint

Postby Chrisnz » Mon May 26, 2014 7:05 pm

"Squeezy" posted this on my Thread to help me in the same situation... read my thread here... viewtopic.php?f=190&t=117272

This might be of some help?

Try running the following code in a terminal, then log out and log back in. It will run almost instantly and show no output, just a return to the blinking cursor.

Code: Select all
sudo sed -i 's/gnome_keyring/mate_keyring/g' /etc/pam.d/*

Someone else here may see whats happening and this code may need a "Tweek" here and there for your setup.

Regards
Chris.

oliver-joos
Level 1
Level 1
Posts: 4
Joined: Wed Jul 24, 2013 11:26 am

Re: automatically unlock this keyring is gray in linux mint

Postby oliver-joos » Tue Jan 27, 2015 7:29 am

This may have helped in Linux Mint 16. But I have now Mint 17.1 and I think replacing the string "gnome_keyring" with "mate_keyring" is not wise!
There is no pam_mate_keyring.so in my whole Linux Mint, but a pam_gnome_keyring.so:
$ locate _keyring

I have solved this problem by moving the file .local/share/keyrings/login.keyring away, then creating a new keyring named "login" using seahorse and then replacing the new login.keyring by the old again.
For details see: http://askubuntu.com/questions/65281/ho ... g-password

Chrisnz
Level 2
Level 2
Posts: 62
Joined: Sun May 20, 2012 6:08 am
Location: New Zealand

Re: automatically unlock this keyring is gray in linux mint

Postby Chrisnz » Mon Feb 09, 2015 9:44 pm

Good One.

Ive since moved to T/BIrd and no issues :(


Return to “Wireless”