Ubuntu requires a key ring to unlock the password

Source: Internet
Author: User
For example, a program for obtaining emails will save your logon password to the key ring and access the key ring to obtain the password next time. The passwords in the key ring are saved in plaintext, therefore, the system's default key ring is encrypted and the password is the logon password. In this way, if a program needs to access the key ring, a password must be provided to ensure security, however, it is too much trouble for a lazy person like us. There are two solutions: remove the default key ring password to open the application-attachment-password and encryption key (or enter seahor in the terminal)

For example, a program for obtaining emails will save your logon password to the key ring and access the key ring to obtain the password next time. The passwords in the key ring are saved in plaintext, therefore, the system's default key ring is encrypted and the password is the logon password. In this way, if a program needs to access the key ring, a password must be provided to ensure security, however, it is too much trouble for a lazy person like us.

There are two solutions:

1. Remove the password of the default key ring.

Open the application-attachment-password and encryption key (or enter seahorse in the terminal), switch to the password tab, and you will see a password key ring (my key ring is login ), right-click and change the password. Then, do not enter anything and submit it directly. In this way, the password of the default key ring is removed.

2. This method is displayed on the Internet. You do not need to delete the key ring password, but the key ring password should be saved in plain text. I have never tried it.

The procedure is as follows:

1. Open the terminal and enter sudo apt-get install libpam-keyring.

2. Create a new script with the following content:

#! /Bin/sh

Exec echo-n "MyKeyringPassword" |/usr/lib/libpam-keyring/pam-keyring-tool-u-s

Here, MyKeyringPassword is the password to be unlocked by your key ring.

3. Add the executable permission to the file.

4. In system-preferences-session, add the script to start automatically at startup.

However, this is not safe after all. You can only choose between convenience and security.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.