Posted in Howto Linux Wifi

Ubuntu : connect to your secure wireless network without authenticating against keyring

July 13, 2007 - 2 comments

From : original link

By default, if your wireless network is secured by WPA or such, you have to save the info in your keyring manager, which is protected by a password.

I personally have the same password for my Ubuntu session but also for the keyring manager.

Whenever I log in, I have to authenticate with my user and password, then Gnome tries to connect to my wireless network and prompts me to unlock the keyring. This is tedious since I have the same password for both the session and keyring manager.

Now, you can avoid having to unlock the keyring, read on…

1. Install libpam-keyring package :
$ sudo apt-get install libpam-keyring

2. Then tweak the GDM PAM (plugable authentication module) security
$ sudo gedit /etc/pam.d/gdm

Add the following line at the very end of that file, then save :
@include common-pamkeyring

3. Reboot and authenticate into your session, you should now be connected directly !

Both SESSION and KEYRING passwords must MATCH, if they don’t match, you would be prompted to unlock the keyring.

4. Optional : change your keyring password

$ /usr/lib/libpam-keyring/pam-keyring-tool -c

Also see https://help.ubuntu.com/community/WifiDocs/NetworkManager under section “Automatic keyring”

Comments

Robert

September 3, 2007 - 19:40

Thanks for posting this! Exactly what I looked for right now :)

James

May 16, 2008 - 5:11

Thanks Sébastien, exactly what I wanted. For those on Hardy, ignore step one as there is a Gnome version already.

Leave Comment

Please consider visiting the partners below if you enjoyed this article :

If this post saved you time and money, please consider checking my Amazon wishlist.

Before submitting, some rules :
- Is your comment related to the article ?
- You're having a problem ? Have you checked Google, other howtos, docs, manpages ?
- You're still having the problem ? Have you raised log verbosity, checked traces, ran tcpdump ?
- Have you checked your configuratoin for typo ?
Unless your comment is providing additional info or respect the rules above, DON'T comment.
If you don't understand what you are doing, I urge you to read the documentation, I'm not your free Level 1 helpdesk guy.