Ubuntu asks for Wifi password during startup even though it remembers it

I am using Ubuntu 14.04 LTS and I have a problem with my wifi. Its not really a big deal, but its annoying. I got asked for my wifi login credentials during each startup even though Ubuntu remembers my username login and password.

This happens even before I login into the system. And it does not even matter wheter I enter the wifi password of not. If I just click "cancel" on that dialog and then login to the system, its going to connect to the wifi anyway (automatically). I am just trying to get rid og the dialog.

Any tips?


Network Manager saves the passwords in your keyring, which doesn't get unlocked until you login. You can stop it from connecting before you login by unchecking "Available to other users" in the connection settings.


Two solutions (both tested only on Ubuntu 14.10!):

  1. Unchecking "Available to other users" in the connection settings (go to "Edit connections" in Network Manager menu).
    Slight problem (at least on Ubuntu 14.10): for some reason, the connection does not connect automatically, when you log in. I have to do it manually, even though the "Automatically connect to this network when it is available" box is checked.

  2. cd /etc/NetworkManager/system-connections/
    sudo nano <your_connection_name>
    

    Then find the section [802-1x]. Set the field password-flags=0. That's it. If you now reconnect to your wireless connection and check this connection file again you will see that a password-flags field was replaced by password=<your_password>. The password is in plain text, but the file is readable only by root, so it should not be a problem.


Not sure it this also works on 14.04, but 15.10 has options in front of the wireless password field (accessed by clicking the small HDD icon) where you can choose if you want to store the password just for yourself or for every user. If you store the password for every user, it should automatically connect to the network.