After the today update which installed pam and updated shadow, something weird happen with useradd/userdel
when I type
useradd test Password: Enter new UNIX password: Retype new UNIX password:
Each of them about root!!!
I mean, the first password it ask is the root one (the user I logged in) and If I give a new password it change the root password. It is not very nice :cry:
If I write a wrong root password at first, this is the message:
useradd test Password: useradd: PAM authentication failed
If I write the corect one but I write two different password at the second and third step:
useradd test Password: Enter new UNIX password: Retype new UNIX password: Sorry, passwords do not match useradd: PAM chauthtok failed
But the user is added anyway.
So I am almost sure is a bug somewhere in the pam o in Shadow password file utilities :shock:
I'm working on the PAM issues now. In the meantime, the quickest way to fix these problems is to add this line to /etc/pam.d/other:
auth sufficient pam_rootok.so
so the file looks like this:
#%PAM-1.0 auth sufficient pam_rootok.so auth required pam_unix.so account required pam_unix.so password required pam_unix.so session required pam_unix.so
Sorry for the inconvenience.
Okay, PAM attempt #2 is up.
You'll probably see a couple file conflict errors when you --sysupgrade. Just --force em.
auth sufficient pam_unix.so