Personal tools
You are here: Home Team Members Thomas Janssen Gnome-keyring automatic opened when login with pam keyring

Gnome-keyring automatic opened when login with pam keyring

by Thomas Janssen last modified Apr 07, 2008 02:40 PM
— filed under: ,

How to get the gnome-keyring automatic opened for, example Wlan, when you login into Gnome.

Applicable to Fedora Versions

  • Fedora 8

Requirements

None

    Doing the Work

    First you have to have the same gnome-keyring password as your login password. If it is not the same you have to delete your default keyring in ~/.gnome2/keyrings

    1. Deleting the default keyring with the wrong password:
    2. rm ~/.gnome2/keyrings/default*
    3. Install the pam_keyring package:
    4. su -c "yum install pam_keyring"
    5. Edit your /etc/pam.d/gdm:
    6. su -c "nano /etc/pam.d/gdm"
      If you are not familiar with nano, use gedit.

    7. Your gdm should look like the following. Copy/Paste it, And remember, the first line stays blank!
    8. #%PAM-1.0
      auth [success=done ignore=ignore default=bad] pam_selinux_permit.so
      auth required pam_env.so
      auth optional pam_keyring.so try_first_pass
      auth include system-auth
      auth optional pam_gnome_keyring.so
      account required pam_nologin.so
      account include system-auth
      password include system-auth
      session required pam_selinux.so close
      session include system-auth
      session required pam_loginuid.so
      session optional pam_console.so
      session required pam_selinux.so open
      session optional pam_keyinit.so force revoke
      session required pam_namespace.so
      session optional pam_gnome_keyring.so auto_start
      session optional pam_keyring.so

    Troubleshooting

    How to test

    If you are useing NetworkManager (nm-applet) for your Wlan and you log in next time at Gnome, you will be asked for a new Password for gnome-keyring-manager. Give the same as your login password. From there your keyring will automatic opened for you when you login.
    1. You can make the keyring by hand as well, press alt+f2 and type the following:
    2. gnome-keyring-manager

    More Information

    Disclaimer

    We test this stuff on our own machines, really we do. But you may run into problems, if you do, come to #fedora on irc.freenode.net

    Document Actions
    Log in


    Forgot your password?
    New user?