Linux-PAM: Missing pam.d data for useradd and usermod
btw. anyone had experience with Ansible on Alpine? I'm getting the strange error when using "users" module: "msg": "Password: usermod: PAM: Authentication information cannot be recovered\n", but regular useradd works fine yes i think you need some packages like useradd and usermod aeh no not packages shadow* shadow@community and yes, my roles is adding shadow and cracklib before adding users but apparently it doesn't work and linux-pam is also added and then you still need /etc/pam.d/useradd and usermod correct the pam.d structure on Alpine is kinda weird ls /etc/pam.d/ base-account base-session other base-auth base-session-noninteractive base-password login [paste]
jomat@x250:~/ansible|⇒ cat ./roles/base-system/files/etc/pam.d/useradd
auth sufficient pam_rootok.so
auth required pam_unix.so
account required pam_unix.so
session required pam_unix.so
password required pam_permit.so
jomat@x250:~/ansible|⇒ cat ./roles/base-system/files/etc/pam.d/useradd
auth sufficient pam_rootok.so
auth required pam_unix.so
account required pam_unix.so
session required pam_unix.so
password required pam_permit.so
<skrzyp> well
<skrzyp> so why it's not included in linux-pam package?
<jomatv6> nobody files a bug
<skrzyp> what happen if I do?
<jomatv6> it'll be fixed
<jomatv6> probably
Possible solution: Rework pam.d definitions.
(from redmine: issue id 6643, created on 2017-01-07, closed on 2017-04-08)
- Changesets:
- Revision cf6a4148 by Henrik Riomar on 2017-03-24T12:54:42Z:
community/shadow: add pam config
fixes #6643