GNU/Linux >> Linux の 問題 >  >> Cent OS

「passwd:Module is unknown」 – CentOS/RHEL 6 でパスワードを変更中にエラーが発生する

問題

passwd コマンドを使用してパスワードを変更すると、次のエラーが表示されます:

"passwd: Module is unknown"

解決策

不明な PAM モジュール pam_pwquality.so があります /etc/pam.d/system-auth で ファイル。 pam_pwquality.so モジュールは、CentOS/RHEL 6 ではなく、CentOS/RHEL 7 で使用する必要があります。

# 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 はパスワードの強度をチェックするために使用され、CentOS/RHEL 7 の pam_cracklib.so を置き換えます。CentOS/RHEL 6 の構成ファイルからこの pam_pwquality.so を削除します。

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

もう一度パスワードを変更してみてください。

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


Cent OS
  1. CentOS / RHEL :ファイルシステムの UUID を変更する方法

  2. CentOS/RHEL でファイルシステムのラベルを変更する方法

  3. CentOS/RHEL で Pstack コマンドを実行する方法

  1. 「xfs_log_force:エラー 5 が返されました」 – XFS エラー (CentOS/RHEL 7)

  2. CentOS/RHEL – vgs コマンドでエラーが報告される:“global/global_filter” unknown

  3. 「BAD PASSWD :is too simple」 – CentOS/RHEL 7 および 8 でのパスワード変更時のエラー

  1. パスワードレスログインSSH– CentOS 6 / RHEL 6

  2. CentOS / RHEL 7 :マシン ID を変更する方法

  3. 「passwdqc」PAM モジュール CentOS/RHEL を使用して、「root」を含むすべてのユーザーにパスワードの複雑さを適用する方法