This is a small nuisance I've had in Ubuntu forever. When I set my computer to login automatically, Network Manager asks me for my keyring password every time it boots and it refuses to connect to the Internet until I enter it. Is there a reason for that?
Also, other network managers such as Connman don't have this problem, and I have noticed the latter also has an application indicator while NM-applet runs in the Notification Area. Are there plans to migrate to Connman, or to adapt NM-applet for Natty?
There is an option in Network manager not to use password. If you edit the connection, at the bottom of the page there is a box "available to all users" if you tick this it will not require a password.
To edit right click the icon, select edit Connections, select wireless,select your connection and click edit.
NM does not ask for your root password! It asks for your keyring password.
Your keyring saves passwords encrypted, so no one can steal them. That is why you need to enter your keyring password, so Ubuntu can decrypt your passwords to use them (eg. to get your WLAN-Password).
You can check the content of your keyring in Menu -> System -> Preferences -> Passwords and Encryption Keys. Here you will find all your passwords in cleartext, after you unlocked your keyring (rightklick an element -> properties -> password -> show password).
To change your keyring password, rightklick the line Password: login and choose Change Password
Choosing no password will make keyring never ask for any password again, but still save them (unencrypted! So this should not be your first choice on a Notebook).
The reason why NetworkManager asks for your password is that it wants to keep your passwords in a safe place (an encrypted keyring), while ConnMan doesn't care about that...
If you don't care about security, you can remove the password from the GNOME keyring, or use ConnMan instead...
And migrating to ConnMan as the default in Ubuntu is currently no option, as it only support Ethernet and WiFi, but no modems (PSTN, ISDN, DSL, 3G), Bluetooth, VPN, etc.
For WPA-Enterprise connections using a username/password, the password is usually stored in the user keyring, even if the "available to all users" checkbox is ticked.
The only way I have found to prevent that NetworkManager asks for my password is by manually editing the connection settings:
Edit the network connection, making sure the "available to all users" checkbox is enabled. Save it.
Open a terminal and change directory:
cd /etc/NetworkManager/system-connections
. Each file in that directory represents one of the connections saved to "all users" by NetworkManager.Use
sudo grep flags *
to list all the files that use password flags. You will see the file name that represents your WPA Enterprise wifi connection. Let's call that filemyconnection
.Edit the file
sudo nano myconnection
Go to the section
[802-1x]
in the file, remove thepassword-flags
and add a linepassword=mypassword
.Save the file
On the next reboot NetworkManager should have the password already, so it should not need to unlock the keyring to connect to it.
Note that this approach stores your password in a plain text file. Although the text file is only readable by root, NetworkManager is able to read it, and any user can see the password as well going to the "edit connection" settings in NetworkManager. This solution may be practical to users who use a paswordless-login on a computer that is only used by them.
As said above it is primarily a security feature. It disallows unauthorized users to access/modify data on your PC.