问题原因
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
-
Move the keyring file:
mv /home/<username>/.gnome2/keyrings/login.keyring /tmp
-
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
-
kill process
gnome-keying-daemon
:kill -9 $(pidof gnome-keying-daemon)
-
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:
-
Stop the PAM module controlling the keyring by removing the
auto_start
in the /etc/pam.d/gdm-password file.Prior to change:
# cat /etc/pam.d/gdm-password ... session optional pam_gnome_keyring.so auto_start ...
After change:
# cat /etc/pam.d/gdm-password ... session optional pam_gnome_keyring.so ...
-
Navigate to Menu->system->preferences->startup applications->
remove the checkbox of the gnome keyring daemon line. -
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.