passwd 失败,出现 passwd: pam_start() failed, error 26 in tahr puppy 6.0.2

passwd 失败,出现 passwd: pam_start() failed, error 26 in tahr puppy 6.0.2

从消息日志中:

Dec 17 08:08:28 puppypc30098 authpriv.err passwd[8265]: PAM _pam_load_conf_file: unable to open /etc/pam.d/common-password

文件 /etc/pam.d/common-passwd 确实丢失了:

root# ls /etc/pam.d
chfn  chpasswd  chsh  newusers  other  passwd  sshd

是否需要安装某个软件包才能使 passwd 正常工作?

答案1

在文件中创建以下代码/etc/pam.d/common-passwd,然后passwd运行:

password    [success=1 default=ignore]  pam_unix.so obscure sha512
password    requisite   pam_deny.so           
password    required    pam_permit.so               
password    optional    pam_gnome_keyring.so    
password    optional    pam_ecryptfs.so

相关内容