Gnome-keyring automatic opened when login with pam keyring
How to get the gnome-keyring automatic opened for, example Wlan, when you login into Gnome.
Applicable to Fedora Versions
- Fedora 8
Requirements
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
- Deleting the default keyring with the wrong password:
- Install the pam_keyring package:
- Edit your /etc/pam.d/gdm:
- Your gdm should look like the following. Copy/Paste it, And remember, the first line stays blank!
rm ~/.gnome2/keyrings/default*
su -c "yum install pam_keyring"
su -c "nano /etc/pam.d/gdm"If you are not familiar with nano, use gedit.
#%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
- You can make the keyring by hand as well, press alt+f2 and type the following:
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

