Centos

passwd:在 Jessie 上創建 CentOS 7 domU 時模組未知

  • May 8, 2017

由 xen-tools 使用以下命令創建的 DomU:

sudo xen-create-image –hostname=test –dhcp –memory=256mb –install-method=rinse –dist=centos-7 –arch=amd64 –lvm=VM –bridge=xenbr-48 –noswap –fs=ext4 –size=5Gb

一切順利,直到:

Setting up root password
Changing password for user root.
passwd: Module is unknown
Do you want to try to change the password again?? [Y/n]: 

重試失敗並出現相同的錯誤。我嘗試在 chroot 中設置 root 密碼,但passwd root由於同樣的錯誤而失敗。我想有些東西不見了,/etc/rinse/centos-7.packages但我不知道是什麼。

缺少的模組是 pam_pwquality.so,由sudo yum install libpwquality

引用自:https://serverfault.com/questions/845748