Automatically unlock gnome keyring with pamusb linux

So after you add usb to automatically unlock you computer, but guess what? You still need input password to gnome keyring. It just soo frustrating. So the question is how do i automatically unlock it, now I found a way. After few weeks finally found a way to do it. I don't know why there is no clear documentation for this, I was just stumbled on this.

Edit /etc/pam.d/login

First was that file, open as a root using your favorite text editor, i use vim for this example because it's cool, although to be honest I got lost a lot sometimes which makes me better at using google. Just type

sudo vim /etc/pam.d/login

after that add this text auth optional pam_gnome_keyring.so to the end of @include common-auth section, something like this :

and then add this before # Standard Uni*x..  section:

session	optional	pam_gnome_keyring.so	auto_start

I add custom just to better see in case maybe I will revisit this file in the future and then for the last thing to do is just to add startup custom command entry with this command

/usr/bin/pamusb-keyring-unlock-gnome

So next time you don't have to type any password everytime you run sudo on any app. Everything with sudo is automated.

Tag: gnome, gnome keyring, pamusb, linux
Next Post Previous Post
No Comment
Add Comment
comment url