• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

passwd: gkr-pam: couldn’t update the login keyring password: no old password was entered

by admin

The Problem

The system can not intermittently change the user password even after the password has expired as below secure log. Although the password was changed, the new password will not be applied for the next login attempt.

/var/log/secure
--------------
Jan 10 15:26:28 sshd[5999]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=lpct-80fffz1.precastcorp.com user=test
Jan 10 15:28:01 crond[6274]: pam_unix(crond:account): expired password for user test (password aged)
Jan 10 15:39:24 passwd: pam_pwquality(passwd:chauthtok): pam_get_authtok_verify returned error: Failed preliminary check by password service
Jan 10 15:39:54 passwd: gkr-pam: couldn't update the login keyring password: no old password was entered
Jan 10 15:41:36 passwd: pam_unix(passwd:chauthtok): password changed for test
Jan 10 15:41:36 passwd: gkr-pam: couldn't update the login keyring password: no old password was entered

The Solution

The pam_gnome_keyring.so module being loaded in the pam.d directory and is preventing the password change. Remove the gnome-keyring-pam package as per the below steps:

# rpm -qa | grep gnome-keyring
# yum remove gnome-keyring-pam-[version]

Filed Under: CentOS/RHEL, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. optipng for image optimization
  2. How to use “yum downloadonly” to download a package without installing it
  3. How to make ethtool settings persistent across reboots in CentOS / RHEL 6,7
  4. How to create virtual block device (loop device/filesystem) in Linux
  5. UNIX / Linux : What Is a Shell? What are different Shells?
  6. How to Configure Network Interface Teaming in CentOS/RHEL 7 and 8
  7. Using iostat to monitor system performance in Linux (Examples included)
  8. “xfs_log_force: error 5 returned” – XFS Error (CentOS/RHEL 7)
  9. killall Command Examples in Linux
  10. How to configure DM-Multipath from an iSCSI initiator to an iSCSI target in CentOS / RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright