Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Whenever Ubuntu boots up, a dialogue pops up asking me to unlock my default keyring.

Is there some way this can unlock automatically through PAM or some other magical way?

enter image description here

share|improve this question

10 Answers 10

up vote 47 down vote accepted

Be warned that this will make your keyring accessible without a password. Period. You don't have to be logged in to view it

With that being said,

I think the simplest way is to set the password for the keyring to an empty password -- you will not be prompted for a password then:

  1. Open Applications -> Accessories -> Password and Encryption Keys
  2. Right-click on the "login" keyring
  3. Select "Change password"
  4. Enter your old password and leave the new password blank
  5. Press ok, read the security warning, think about it and if you still want to get rid of this dialog, choose "use unsafe storage".

Again, as the message says: This will expose all your passwords (e.g. email passwords) that you chose to save in the default keyring to anyone using your computer or having access to your files and is therefore not recommended.

Addendum for Ubuntu 11.04:

  • In the default Unity session, you can start the application by clicking on the Ubuntu logo in the top left corner, then typing Password, and selecting Password and Encryption Keys from the search result.

  • In the classic session the path to start the application has changed to System → Preferences → Password and Encryption Keys

Addendum for Ubuntu 11.10:

  • In the default Unity session, you can start the application by clicking on the Ubuntu launcher (the first item) in the Unity launcher bar on the left side, then typing Password, and selecting Password and Encryption Keys from the search result.

  • In the classic session (from the gnome-session-fallback package) the path to start the application has again changed to Applications → Other → Password and Encryption Keys

share|improve this answer
    
Thanks for the tip, also Password and Encryption keys have moved to System > Preferences in 11.04 –  Drew Jun 30 '11 at 15:54
    
how to on 12.04? –  Fanoy Apr 5 '12 at 19:00
1  
Mac OSX encrypts the passwords, but still manages to auto-login. Keys are protected 'as usual' when logged in. The only additional threat is loosing physical access to your computer. Will Ubuntu provide a similar feature in the future? –  user24668 May 11 '12 at 8:12
    
Thank you, @Fanoy go to The Menu and type password & Keys. And delete the Deafult one, after this - it'll ask you a new password . just leave it blank. And Click OK –  hardianto May 27 '12 at 12:18
    
Sadly doesn't work on 12.10 because of a bug. When you try to change the password it says: GDBus.Error:org.freedesktop.Secret.Error.NoSuchObject: The collection does not exist But it is apparently fixed in the latest version. –  Timmmm Dec 23 '12 at 22:52

I have solved this problem through terminal.There is a directory under /usr/lib , called gnome-keyring. Under that directory there are a directory 'devel' and two files gnome-keyring-prompt and gnome-keyring-prompt-3.I don't know much about the directory 'devel'.So I removed only the two files and solved the problem.The corresponding commands are here-

cd /usr/lib/gnome-keyring

Then

sudo rm gnome-keyring-prompt gnome-keyring-prompt-3

And then reboot your computer to see the effect.

share|improve this answer

For Ubuntu 13.10:

  1. Open Applications -> Accessories -> Password and Encryption Keys

  2. Click View -> "By keyring"

  3. Right-click on the "login" keyring

  4. Select "Change password"

  5. Enter your old password and leave the new password blank
  6. Press ok, read the security warning, think about it and if you still want to get rid of this dialog, choose "use unsafe storage".
share|improve this answer

For versions up to 12.04: (for 12.10 onwards, see this answer)

The method is similar to previous Ubuntu versions, but I also include a command-live alternative at the end.

1. Using the Gnome Keyring Manager (Seahorse)

  • Press Alt+F2, type seahorse and press Enter to start the Gnome Keyring Manager:

    enter image description here

  • Alternately, open a terminal with Ctrl+F2+T, type seahorse & and press Enter.

  • The "Passwords and Keys" window should come up as shown below. Under the Passwords tab, select login, right-click on it, and then click on Change Password:

    enter image description here

  • The "Change Keyring Password" box will come up. Type your old password, and then leave the new/confirm password fields blank. Then press OK, and the information box shown below will pop-up; read it, and then click on Use Unsafe Storage to not have to enter your password at each login:

    enter image description here

  • Close the keyring manager. After you log out/reboot, you won't be asked for your password any more.

2. Disable the login keyring password from the command-line

As an alternative to all the above steps, simply open a terminal, and type/paste the below, changing MYPASSWORD to whatever your current password is; that's it!

python -c "import gnomekeyring;gnomekeyring.change_password_sync('login', 'MYPASSWORD', '');"
share|improve this answer
2  
For the 1st part this is my "seahorse" application window !! No sign of any passwords tabs. So the 1st part is not valid However, for the 2nd part. This was the amazing soultion. No more annoying "keyring" Thanks :) –  Suhaib Sep 15 '12 at 0:30
    
This solution worked for me. –  CR2 Nov 20 '13 at 9:50

For Ubuntu 12.10 and onwards

The interface of the "Password and Keyring" manager changed slightly in 12.10. When you open it, you won't immediately see the "Login" keyring as described in other answers. The interface will look like this:

enter image description here

In order to view the Login keyring, you need to open the View menu, and choose By Keyring. Once that's done, your interface will look like this:

enter image description here

Right-click on the "Login" entry at the top and choose Change Password. You'll need to enter the current password, which should be your user account password, before continuing. When you do that, you'll get a dialog where you will be asked to enter the new password twice:

enter image description here

Leave this blank, choose "Continue", and choose it again to confirm you desire to continue without a password.

share|improve this answer
2  
Perfect, this applies to 13.04. –  Gabriel May 5 '13 at 22:47
    
"Right-click on the "Login" entry at the top and choose Change Password. You'll need to enter the current password, which should be your user account password, before continuing. When you do that, you'll get a dialog where you will be asked to enter the new password twice:" Bold font to highlight the query i have which is how to if can not do as described due to seahorse using different password from the one which is used to log on desktop session. Asked this q askubuntu.com/q/328347/102029. Vote to reopen please... –  geezanansa Aug 10 '13 at 2:41
1  
Worked Ok for 13.10 –  netimen Feb 5 at 13:17

open passwords and keys then

enter image description here

enter image description here

Then you need to enter your current password (old password). Don't enter any password for your new one, or leave it blank.

You need to confirm that you will store unencrypted password. If you are sure that it is what you want, then just click "Use Unsafe Storage" button.

share|improve this answer
    
this is my "seahorse" application window i.stack.imgur.com/JOc5C.png !! No sign of any passwords tabs. are you using 12.04 ? –  Suhaib Sep 15 '12 at 1:08
    
yeah sure i am talking about 12.04 –  user61928 Sep 15 '12 at 9:43

Simply delete your default keyring. (Backup the passwords first!) You don't need it. You can keep all your keys in the login keyring.

The login keyring is unlocked when you login. All keys in it will be available, you don't have to enter more passwords again.

If you are using auto-login, then when you want to access something that needs a key from the login keyring you will be prompted for the password, of course, but only once.

(As many answers already pointed out) your keyrings are in System / Preferences / Passwords and Encryption Keys

share|improve this answer

Using Ubuntu 11.10 with Unity:

  1. Open "Passwords and Keys" application
  2. In the Passwords tab, right click on the password icon
  3. Select "Change Password"
  4. Enter your current password as the "Old Password"
  5. Leave the "New Password" and "Confirm" fields empty
  6. Click "Ok"
  7. Confirm to "Use Unsafe Storage"

Hope that works for you

share|improve this answer
    
Yes, I can confirm this working. –  giowck Nov 17 '11 at 19:18
    
Thankyou...working –  One Zero Nov 17 '11 at 20:34

It's also important to set 'login' keyring as default keyring by right clicking on it.

share|improve this answer

You need to get the password for your login key ring to be the same as your normal login password.

To do this:

Open Applications > Accessories > Passwords and Encryption Keys.

You will see under the passwords tab a list of keyrings. One should be called " Passwords: login"

Click on the + and you should see a list of accounts that require passwords such as you Gwibber details, Evolution passwords etc.

This means when you log in all of these accounts will be unlocked by this login keyring.

To get the keyring to unlock when you log into Ubuntu, right click on "Passwords: login" and choose "Change Password"

You will then need to enter your current keyring password and set your new keyring password to be the same as your normal login password.

To test: Log out, log back in and open Evolution to prove that this has worked.

share|improve this answer
1  
I think this only works when you're not set to automatically log in. –  Matthew Aug 13 '10 at 19:37
1  
It didn't work for me. Deleting the default keyring neither. It really sucks. –  e-satis Oct 15 '10 at 11:07

protected by Community Jan 24 '12 at 15:47

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.