Masalahnya
Saat mengubah kata sandi menggunakan perintah passwd, kesalahan berikut muncul:
"passwd: Module is unknown"
Solusinya
Ada modul PAM yang tidak dikenal pam_pwquality.so di /etc/pam.d/system-auth mengajukan. Modul pam_pwquality.so harus digunakan di CentOS/RHEL 7 daripada 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 digunakan untuk memeriksa kekuatan kata sandi dan menggantikan pam_cracklib.so di CentOS/RHEL 7. Hapus pam_pwquality.so ini dari file konfigurasi di CentOS/RHEL 6.
# grep pam_pwquality.so /etc/pam.d/system-auth #
Sekarang coba ganti sandi lagi.
# passwd oracle Changing password for user oracle. New password:
‘lxc_cgfs – Perangkat atau sumber daya sibuk – gagal menyetel memory.use_hierarchy ke 1; melanjutkan' – kesalahan saat memulai wadah LXC
Cara Mengganti Algoritma Kata Sandi di CentOS/RHEL