How to remove password prompt from keyring in autologin

It's a common complaint: I want to remove the blessed password prompt at startup ... that's why I enabled autologin! Sure, many, like me, prefer to have auto-login enabled, but the Network Manager insists on asking us for the password, to unlock the keyring and that it, in turn, unlocks the password used by the wireless connection. Let's see what are some possible solutions ...


The less recommended alternatives

1.- Delete the password of our keyring (thus making our Linux a much more vulnerable system). This is the worst of all the alternatives and, unfortunately, the most popular in many forums and blogs. I do not recommend it under any circumstances, but it is worth mentioning.

2.- Use the same password for your login and the keyring.

a. Install libpam: sudo apt-get install libpam-gnome-keyring

b. If you already start GDM automatically (without login), edit the file /etc/pam.d/gdm-autologin. In case of starting GDM requiring login, edit /etc/pam.d/gdm.

c. At the end of the file add the following:

auth optional pam_keyring.so try_first_pass
session optional pam_keyring.so

3.- Remove Network Manager y connect to the internet using the terminal. A derivation of this alternative could be to replace the Network Manager with another network manager, such as Wicd.

4.- Enable connection for all users. In this way, we prevent the Network Manager from asking for the password when trying to connect to that network.

5.- Disable Wi-Fi at system startup. This can be a good alternative if you directly want to disable Wi-Fi at startup. Remember that to enable it you will have to right click on the Network Manager> Enable wireless. Once that is done, you will be able to connect to your Wi-Fi networks without problems.

The best alternative (from my point of view)

1.- Applications> System> Preferences> Network Connections or right click on the Network Manager applet in the GNOME status bar> Edit connections.

2.- Eyelash Wireless > select the network you usually connect to> Edit.

3.- Disable the option Connect automatically.

The password request at startup arises because the system tries to connect to the wireless networks marked as automatic connection. By disabling this option, you will avoid the constant request for the password without "fiddling" with your keyring or reducing the security of your system.

The only disadvantage of this method is that to connect to this network you will have to do it manually. This, however, does not present a great complication: click on the Network Manager and choose the network you want to connect to. That easy!


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   josev said

    It is so difficult to set the login password and so there is no need to freak out. Then the children connect to the Internet when they want without control, or the relative sees in your history that you spend more time on dirty pages than reading the newspaper, or they take your laptop from you at the university or at the bar counter and how you have saved the passwords of facebook, your email, etc. the thief has access to Everything simply because you have not put a simple password when starting. Get used to always logging in with a password.

  2.   itomailg said

    To enter automatically, you only have to edit System> Administration> Configuration of the access screen.

    So that it does not ask you for the password when connecting via Wi-Fi, you just have to go to edit the connection and check a box.

    edit connections> wireless> edit the connection> check the box at the bottom "Available to all users"

    Greetings, itomailg

  3.   Simon said

    Well, I have tried solution 2 in "Less recommended alternatives" in Ubuntu 10.04 and it doesn't work. It asks me for the password to unlock the gnome-keyring.
    On the other hand, in Ubuntu, the libpam-keyring package does not exist, it is called "libpam-gnome-keyring".
    And the text to introduce in the gdm file would really be:
    «Auth optional pam_gnome_keyring.so try_first_pass
    session optional pam_gnome_keyring.so »

    Although I did not bother you because it does not work. 🙁

    As for «The best alternative», it is not such as it only «solves» the problem regarding the Wi-Fi connection, but the keyring is used to store many other passwords for many other programs ...

  4.   Simon said

    The rest is also true, at least in Ubuntu ...

  5.   itomailg said

    Sorry, I didn't realize I was….

  6.   Matias said

    I have another disadvantage, in some connections it does not allow me to disable the option »Connect automatically», it appears marked and in gray and I cannot uncheck it. Any ideas?
    regards
    Matias

  7.   Armando said

    Have you tried going to keys (keys) and changing the login password of the keyring to a blank one? I think it is the easiest ... although you lose security.

  8.   emerson said

    This has not worked for me, but it is normal, in Linux things never work the same for everyone, it is that exciting dark side that this M… of SO has