• 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: Module is unknown” – error while changing the password in CentOS/RHEL 6

by admin

The Problem

While changing password using the passwd command, the following error appears:

"passwd: Module is unknown"

The Solution

There is a unknown PAM module pam_pwquality.so in /etc/pam.d/system-auth file. The pam_pwquality.so module should be used in CentOS/RHEL 7 rather than CentOS/RHEL 6.

# cat /etc/pam.d/system-auth
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required pam_env.so
auth sufficient pam_unix.so nullok try_first_pass
auth requisite pam_succeed_if.so uid >= 500 quiet
auth required pam_deny.so

account required pam_unix.so
account sufficient pam_localuser.so
account sufficient pam_succeed_if.so uid < 500 quiet
account required pam_permit.so

password requisite pam_pwquality.so try_first_pass local_users_only retry=3 minlength=8 lcredit=0 ucredit=-1 dcredit=-1 ocredit=-1 authtok_type=
password requisite pam_cracklib.so ucredit=-1 minclass=3 ocredit=-1 enforce_for_root lcredit=-1 dcredit=-1 minlen=6
password requisite pam_pwhistory.so enforce_for_root remember=12
password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok
password required pam_deny.so

pam_pwquality.so is used to check the strength of password and replaces the pam_cracklib.so in CentOS/RHEL 7. Remove this pam_pwquality.so from the configuration file in CentOS/RHEL 6.

# grep pam_pwquality.so /etc/pam.d/system-auth
#

Now try chaning the password again.

# passwd oracle
Changing password for user oracle.
New password:

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

Some more articles you might also be interested in …

  1. “sudo: /etc/sudoers is world writable” – How to correct the permissions of sudoers file
  2. How to remove unwanted entries in /etc/shadow file
  3. su: command not found
  4. e4defrag: command not found
  5. How To Masquerade Sender Address In Sendmail in CentOS/RHEL
  6. Ngrok how to share localhost to world
  7. Understanding rsyslog Actions
  8. fail2ban-client: command not found
  9. pvdisplay Command Examples in Linux
  10. Oracle Software Group Accounts OSDBA, OSOPER, Oracle Inventory group

You May Also Like

Primary Sidebar

Recent Posts

  • qsub Command Examples in Linux
  • qsub: command not found
  • qrcp Command Examples in Linux
  • qmrestore Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright