LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 03-21-2011, 10:46 AM   #1
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 194

Rep: Reputation: 50
Force password complexity - RHEL 5


I need to implement a technique to force password complexity in our organization. We use RHEL 4 and RHEL 5 boxes, all of which need to have a password complexity of 14 chars long, 1 upper and 1 lowercase, 1 digit, and 1 special character.

Is there a pam configuration file or something I can use to implement this? Any help would be appreciated, a quick google search turns up a lot of junk.

Thanks in advance.
 
Old 03-21-2011, 11:03 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: C:\MSDOS\
Distribution: LFS 3.8.11 with OpenBox 3.5.0
Posts: 1,455

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Definitely.

Here is a great howto: http://www.cyberciti.biz/faq/rhel-fe...ality-control/

In short: Yes, you'll be using PAM and PAM modules to do this.
 
1 members found this post helpful.
Old 03-21-2011, 11:39 AM   #3
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 194

Original Poster
Rep: Reputation: 50
Thanks, that is exactly what I was looking for an it seems to have worked perfectly.

One last question that you may or may not be able to help with.

Is there a way to change the error messages? They have to be in a module/file somewhere. for example, I would like to change "BAD PASSWORD: is too simple" to "Password MUST be 14 characters in length with at least one uppercase, one lowercase, one digit, and one special character".

Something that will be a lot of help so the users are calling me every time they get an error.

Thanks!
 
Old 03-21-2011, 11:54 AM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: C:\MSDOS\
Distribution: LFS 3.8.11 with OpenBox 3.5.0
Posts: 1,455

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Well, with a combination of the commands "grep, strings, vi" im sure you could hunt down the offending message in /lib/security/pam* and hex edit the file to change the text.

Or, you could create a script called "passwd" that echos your message first, then runs the actual passwd program...
 
1 members found this post helpful.
Old 03-21-2011, 12:07 PM   #5
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 194

Original Poster
Rep: Reputation: 50
Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script to test string complexity (like password complexity) robertjinx Linux - Server 2 05-12-2010 02:58 PM
password complexity pasupuleti Linux - Security 18 09-24-2006 01:07 PM
password complexity moinpasha Linux - Security 11 09-13-2006 10:53 PM
password complexity moinpasha Programming 1 09-12-2006 05:24 AM
Setting password complexity Harry Seldon Linux - General 1 08-04-2006 02:33 PM


All times are GMT -5. The time now is 09:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration