0

Unlock keyring immediately on login

Linux

I use the NetworkManager applet to manage my network connections on my Ubuntu laptop and the gnome-keyring-daemon to store my network passwords/keys. One thing that is a little annoying, is that once you login to your system, you have to unlock your keyring (if you are attempting to join a secure network).

I finally found way to get past this!

(NOTE: This fix requires your user password, and your keyring password be the same.)

 

First... sudo apt-get install libpam-keyring
 

Then, simply add one line to your /etc/pam.d/gdm

sudo vim /etc/pam.d/gdm

and add

@include common-pamkeyring

to the end of the file and save.

 

tags:
Linux
todd sharp said:
 
Gee that sounds much simpler then a GUI... :-/
 
posted 547 days ago
Add Comment Reply to: this comment OR this thread
 
 
Well, it is pretty dang simple.

 
posted 547 days ago
Add Comment Reply to: this comment OR this thread
 
Chad Eldridge said:
 
Thanks for making something really annoying ... much much better. Great work.
 
posted 523 days ago
Add Comment Reply to: this comment OR this thread
 
 
Glad to hear it worked for you too. It seems like it should be something Ubuntu does by default.
 
posted 522 days ago
Add Comment Reply to: this comment OR this thread
 
gerard said:
 
what can i do if my password is not the same as my keyring password?

thanks! hope you can solve my problems
 
posted 506 days ago
Add Comment Reply to: this comment OR this thread
 
 
If you look in your /home/[username]/ directory, and show hidden files, you should see something related to gnome-keyring or the like. There is a keyring called "default", just delete that and then when you are prompted to set your new keyring password, just be sure to use the same one as your user account uses.
 
posted 506 days ago
Add Comment Reply to: this comment OR this thread
 
 
the location is /home/[username]/.gnome2/keyrings/default.keyring
 
posted 506 days ago
Add Comment Reply to: this comment OR this thread
 
Michael Mathews said:
 
Thanks Aaron, this worked perfectly and eliminated the very annoying chore of having to login and then immediately unlock the keychain every time. Kudos!
 
posted 495 days ago
Add Comment Reply to: this comment OR this thread
 
Colin Cook said:
 
Thanks, this is a great tutorial but i've got one little observation (as I'm a complete Linux noob)

Instead of using a complicated program like vim to edit that setting, why not use gedit? So the command line would be sudo gedit /etc/pam.d/gdm?

vim was only complicated since i've got no idea how to use it lol. But anyway, thanks for the help! :D
 
posted 431 days ago
Add Comment Reply to: this comment OR this thread
 
bouchecl said:
 
Thanks for this Aaron.

As for the previous poster, try 'nano' instead of the (relative) "bloat" of a GUI editor like gedit.

The command would be

sudo nano -w /etc/pam.d/gdm (I always use the -[w]ide switch, it's safer with it)
 
posted 419 days ago
Add Comment Reply to: this comment OR this thread
 
Colin Cook said:
 
Thanks bouchecl, that's a really tiny but usable program! Will have to remember that.

Cheers!
 
posted 416 days ago
Add Comment Reply to: this comment OR this thread
 

Search