LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2004, 12:04 PM   #1
reemo73
LQ Newbie
 
Registered: Jul 2004
Location: maryland
Posts: 1

Rep: Reputation: 0
Linux PAM minimum password and complexity


I have a question regarding PAM in creating a complex password.

Passwords for classified systems must have the following characteristics:Minimum password length (8-characters), Password composition (mixture of characters/numbers, and upper/lower case) (i.e. complex or strong password)

Linux has some problems here in the way it uses credits. This is the string we have been using:
password required /lib/security/pam_cracklib.so retry=5 minlen=11 dcredit=1 ucredit=1 lcredit=1 ocredit=1 difok=2

NISPOM requires eight characters, minlen may =11, but Aa1!? may satisfy the password requirement.

So the question is what string do we need to ensure 8 characters is really the min length and the password meets complexity requirements. (try something Aa!1$$@ only 7 chars which is less than the required 8 but meets the complexity requirement)

Any help you can offer would be greatly appreciated!
 
Old 10-26-2004, 11:42 AM   #2
tonyfreeman
Member
 
Registered: Sep 2003
Location: Fort worth, TX
Distribution: Debian testing 64bit at home, EL5 32/64bit at work.
Posts: 196

Rep: Reputation: 30
Your "credit" entries are not correct.

I had a similar problem ... it turns out it was with the "credits" I was issueing. I was using a credit like you have: dcredit=1 .... this is not correct, it should be: dcredit=-1

*possibly* the reason why you can type in a seven character password (even though you specify minlen=11) at the command line is because you've ALREADY GIVEN CREDIT for 4 characters BEFORE the password is even entered (ucredit=1 lcredit=1 difok=2 == 4; 11 - 4 = 7).

You should change your line to look like this:

Code:
password required /lib/security/pam_cracklib.so retry=5 minlen=11 dcredit=-1 ucredit=-1 lcredit=-1 ocredit=-1 difok=-2
-- Tony
 
Old 11-11-2004, 10:51 PM   #3
korozion
Member
 
Registered: Apr 2004
Location: Canada
Distribution: Debian
Posts: 124

Rep: Reputation: 15
Just so you know, I was fighting for hours with PAM and minlength. I just read this and it solved all my problems. Thanks!
 
Old 06-01-2005, 03:22 PM   #4
scottjwoodford
LQ Newbie
 
Registered: Jun 2005
Posts: 27

Rep: Reputation: 15
That did not work for me. I'm using RedHat Linux 8.0 and RedHat Linux 9.0 on 2 different systems. I have tried everything on both systems relating to system-auth, and I cannot get it to work. Any ideas?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto change system password policies (passwd length, complexity) tisource Linux - Security 3 09-06-2005 12:01 AM
Checking a password with PAM/Winbind? quill18 Programming 1 05-25-2005 03:12 PM
making the minimum password lenght to less than 5 characters da_kidd_er Linux - Security 1 09-28-2004 06:24 AM
PAM/shadow question: How do I force the password to be changed? clacour Linux - Security 1 03-25-2004 01:31 AM
Setting Minimum Password Length (RH 7.1) zyft02 Linux - Newbie 1 02-26-2002 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration