LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 03-21-2011, 10:46 AM   #1
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 215

Rep: Reputation: 66
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: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
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: 215

Original Poster
Rep: Reputation: 66
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: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
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: 215

Original Poster
Rep: Reputation: 66
Thanks!
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:19 PM.

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