Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Two Changing Password Routines?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sircaren
n00b
n00b


Joined: 25 Nov 2002
Posts: 6
Location: Iowa

PostPosted: Thu May 15, 2003 6:49 pm    Post subject: Two Changing Password Routines? Reply with quote

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
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9626
Location: beyond the rim

PostPosted: Fri May 16, 2003 1:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
sircaren
n00b
n00b


Joined: 25 Nov 2002
Posts: 6
Location: Iowa

PostPosted: Fri May 16, 2003 2:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum