Gnome Keyring: Automatic Unlocking / PAM

As of version 2.19.6 GNOME keyring can automatically unlock the 'login' keyring when the user logs in. Other keyrings may have their unlock passwords stored in the 'login' keyring, and are then automatically unlocked when necessary.

How to Make it Work

To check if your distro or OS has support for this:

To see if a 'login' keyring exists (it's created automatically):

Installing Gnome Keyring's PAM Support

You can ask your OS or distro maker to include this in their next release.

Beware that if you install configure this yourself, it's possible to lock yourself out of your machine. Make sure you know what you're doing, and how to fix any problems that arise.

These instructions are general, and may not work on your machine. You may be able to find more specific instructions on forums for your OS or distro.

First figure out where your PAM modules are located. Make note of the directory:

Build gnome-keyring with the PAM configure options. Use the PAM module directory as the argument for --with-pam-dir

In /etc/pam.d/gdm, add lines like this at the end of the 'auth', 'session' blocks:

In /etc/pam.d/gnome-screensaver, add a line like this to the 'auth' block:

In /etc/pam.d/passwd, add a line like this to the 'password' block:

gnome-screensaver versions earlier than 2.20 do not work.

How it Works

GnomeKeyring/Pam (last edited 2008-02-03 14:47:24 by localhost)