PAM: user{add,del} asks for password
Hi.
I have recently installed PAM on my new LFS system. Now, when I do 'useradd test', it asks me for a password. Which password is it asking for!?! Whatever password I put in, I get useradd: PAM authentication failed The same thing happens with userdel, and I assume groupadd/groupdel. I have somehow got past this password prompt a few times before (I can't work out how now), and then it asks me for a new password- even if I am deleting a user! Who is the new password for? How can I make it so that these programs don't ask for any passwords, and create users with no password and disabled accounts ("x" or "!" for the password field in /etc/passwd and /etc/shadow), like they do without PAM? My current PAM config (in /etc/pam.d) is: login: Code:
auth required pam_securetty.so Code:
auth sufficient pam_rootok.so Code:
auth required pam_securetty.so Code:
# Simon |
Found a solution (it was in the BLFS shadow installation section- which I had followed lol).
The useradd, userdel, usermod, group{add,del,mod} (and a few others) should have the password line as: password required pam_permit.so |
All times are GMT -5. The time now is 08:44 AM. |