unlock login keyring

问题原因

fedora修改登入密码之后,每次登入之后都显示unlock login keyring,提示我输入键盘密码。


解决办法

删除配置文件

rm~/.gnome2/keyrings/login.keyring

Environment

  • Red Hat Enterprise Linux 6
  • Desktop Environment
  • Gnome

Issue

  • What is the meaning of the error "Couldn't unlock login keyring with provided password"?

Resolution

GNOME Keyring is a collection of components in GNOME that store secrets, passwords, keys, certificates and make them available to applications.

GNOME Keyring is integrated with the user's login, so that their secret storage can be unlocked when the user logs into their session.

More details can be found at Projects/GnomeKeyring - GNOME Wiki!.

To remove this error, please follow either one of the options below.

Method 1

  1. Move the keyring file:

    Raw

    mv /home/<username>/.gnome2/keyrings/login.keyring  /tmp
    
  2. logout the current user,and login with the same user again

    This will result in a new keyring file being created and the error should not occur.

Method 2

  1. kill process gnome-keying-daemon:

    Raw

    kill -9 $(pidof gnome-keying-daemon)
    
  2. Then reset user' password
    Next time when you login, will not meet the error again.

Method 3

The alternative method is to stop the keyring daemon via the following steps:

  1. Stop the PAM module controlling the keyring by removing the auto_start in the /etc/pam.d/gdm-password file.

    Prior to change:

    Raw

    # cat /etc/pam.d/gdm-password
     ...
     session     optional      pam_gnome_keyring.so auto_start
     ...
    

    After change:

    Raw

    # cat /etc/pam.d/gdm-password
     ...
     session     optional      pam_gnome_keyring.so 
     ...
    
  2. Navigate to Menu->system->preferences->startup applications->
    remove the checkbox of the gnome keyring daemon line.

  3. Rebooting the machine. The keyring daemon will no longer be automatically started.

Root Cause

This error happens when the user changes their password without changing the keyring password, or some corruption has occurred in the /home//.gnome2/keyrings/keyring.XXX file. This results in a mismatch between the users password and the keyring password.

猜你喜欢

转载自blog.csdn.net/weixin_39833509/article/details/121469199