View previous topic :: View next topic |
Author |
Message |
sircaren n00b
Joined: 25 Nov 2002 Posts: 6 Location: Iowa
|
Posted: Thu May 15, 2003 6:49 pm Post subject: Two Changing Password Routines? |
|
|
Hello all, i've recently started having a strange problem on my web server. It happens when I go to reset a password, either my own or a different user as root. Here's what it looks like:
[root@machine pts/0] passwd <user>
New UNIX password:
Retype new UNIX password:
Enter new UNIX password:
Retype new UNIX password:
Basically it's asking me twice for the password, like it's running two routines to change the password. Does anyone have a possible explination for this behavior? _________________ SirCaren |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9626 Location: beyond the rim
|
Posted: Fri May 16, 2003 1:22 pm Post subject: |
|
|
Do you get also 2 password prompts when logging in ? Check /etc/pam.d/passwd and/or /etc/pam.d/system-auth, maybe there are duplicate entries that affect passwords. I have such an behavior on purpose because I authenticate on LDAP and have UNIX passwords as backup. |
|
Back to top |
|
|
sircaren n00b
Joined: 25 Nov 2002 Posts: 6 Location: Iowa
|
Posted: Fri May 16, 2003 2:05 pm Post subject: |
|
|
Thanks for the reply. No, I don't get multiple logins. I'll post those files for you to see, they look fine to me.
/etc/pam.d/passwd:
Code: |
#%PAM-1.0
auth required /lib/security/pam_stack.so service=system-auth
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
password required pam_pwdb.so md5
session required pam_pwdb.so
auth required pam_pwdb.so shadow nullock
password required pam_cracklib.so difok=3 retry=3 minlen=8 dcredit=2 ocredit=2 use_authtok
account requried pam_pwdb.so
|
/etc/pam.d/system-auth
Code: |
#%PAM-1.0
auth required /lib/security/pam_env.so
auth sufficient /lib/security/pam_unix.so likeauth nullok
auth required /lib/security/pam_deny.so
account required /lib/security/pam_unix.so
password required /lib/security/pam_cracklib.so retry=3
password sufficient /lib/security/pam_unix.so nullok md5 shadow use_authtok
password required /lib/security/pam_deny.so
session required /lib/security/pam_limits.so
session required /lib/security/pam_unix.so
|
See anything amiss? _________________ SirCaren |
|
Back to top |
|
|
|