Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PAM passwd retries
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
JC Denton
Apprentice
Apprentice


Joined: 16 Apr 2003
Posts: 151
Location: USA

PostPosted: Sun Apr 25, 2010 3:15 am    Post subject: PAM passwd retries Reply with quote

Okay, so this is annoying me:

Code:
Changing password for user.
(current) UNIX password:
New password:
Retype new password:
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: it is based on a dictionary word
passwd: Have exhausted maximum number of retries for service
passwd: password unchanged


Yet on another system, a dictionary failure does not make `passwd' fail entirely:

Code:
Changing password for user.
(current) UNIX password:
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
New UNIX password:
Retype new UNIX password:
passwd: password updated successfully


Both systems have the same /etc/pam.d/passwd:

Code:
#%PAM-1.0

auth       include      system-auth
account    include      system-auth
password   include      system-auth


... and the same /etc/pam.d/system-auth:

Code:
auth            required        pam_env.so
auth                            [success=done ignore=ignore auth_err=die default=bad] pam_skey.so
auth            required        pam_unix.so try_first_pass likeauth nullok

account         required        pam_unix.so

password        required        pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
password        required        pam_unix.so try_first_pass use_authtok nullok sha512 shadow

session         required        pam_limits.so
session         required        pam_env.so
session         required        pam_unix.so
session         optional        pam_permit.so


It's not just dictionary failures. Any kind of pam_cracklib (module) failure "repeats" three times on the first system, never giving the user an opportunity to fix the problem.

Any PAM experts out there with a clue on why this is happening? I'm almost at wit's end trying to figure it out...
Back to top
View user's profile Send private message
gerdesj
l33t
l33t


Joined: 29 Sep 2005
Posts: 622
Location: Yeovil, Somerset, UK

PostPosted: Tue Apr 27, 2010 1:25 am    Post subject: Re: PAM passwd retries Reply with quote

Have you compared the PAM versions?

Cheers
Jon
Back to top
View user's profile Send private message
JC Denton
Apprentice
Apprentice


Joined: 16 Apr 2003
Posts: 151
Location: USA

PostPosted: Tue Apr 27, 2010 9:43 pm    Post subject: Re: PAM passwd retries Reply with quote

gerdesj wrote:
Have you compared the PAM versions?

Cheers
Jon

Did an update on the behaving machine. Both now have:
Code:
[I--] [  ] sys-apps/shadow-4.1.2.2 (0)
[I--] [  ] sys-auth/pambase-20100310 (0)

And both are now experiencing the problem. Seems bug report worthy, no?
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Thu Apr 29, 2010 9:16 am    Post subject: Reply with quote

No, it's not worth a bugreport I think it's intenional:

IUSE="debug cracklib passwdqc consolekit gnome-keyring selinux mktemp ssh +sha512"

The cracklib and passwdqc both refer to 'password strength checking'. Disabling those should get you further. However, you should really consider changing the password as the program recommends...
Back to top
View user's profile Send private message
JC Denton
Apprentice
Apprentice


Joined: 16 Apr 2003
Posts: 151
Location: USA

PostPosted: Thu Apr 29, 2010 1:22 pm    Post subject: Reply with quote

Rexilion wrote:
No, it's not worth a bugreport I think it's intenional:

IUSE="debug cracklib passwdqc consolekit gnome-keyring selinux mktemp ssh +sha512"

The cracklib and passwdqc both refer to 'password strength checking'. Disabling those should get you further. However, you should really consider changing the password as the program recommends...

I was referring to the fact that you can't retry after inputting a weak password. On the "broken" version, it just repeats the error three times and gives up.
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