LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-22-2007, 10:14 AM   #1
csaunders
LQ Newbie
 
Registered: Jan 2007
Posts: 26

Rep: Reputation: 15
strong passwords


In Red Hat Enterpise 4 how do I implement this


Passwords must contain at least 3 of the following: lowercase alpha, uppercase alpha, numeric and special character.
 
Old 02-22-2007, 10:25 AM   #2
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
look at your username- CsaunDERs07! just mix it up a little-its not hard.
 
Old 02-22-2007, 10:36 AM   #3
csaunders
LQ Newbie
 
Registered: Jan 2007
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kalabanta
look at your username- CsaunDERs07! just mix it up a little-its not hard.
whoops, my bad, let me rephrase, how do i force this on users?
 
Old 02-22-2007, 03:41 PM   #4
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
force this? meaning? you want to make it hard for a user to access root? is that what you're saying?
 
Old 02-22-2007, 04:18 PM   #5
jhibbets
Red Hat
 
Registered: Sep 2003
Location: Raleigh, NC
Distribution: Red Hat Enterprise Linux v 2.1, v 3, v 4
Posts: 174

Rep: Reputation: 30
pam_cracklib

I think you're going to want to look for something called pam_cracklib. in teh /etc/pam.d/system-auth file, you can add a line like:
password required /lib/security/pam_cracklib.so

The cracklib.so modules does password strenght checking. I believe it looks for similar passwords, dictionary words, repeated letters, etc. There may be additional options with it to require min length, one number, one uppercase, one lowercase, and one special char.

I think that the pam security files are well documented. Hopefully, this will get you in the right direction.
 
Old 02-24-2007, 09:33 AM   #6
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
Yes, what you want is to configure pam_cracklib by adding specific options to it. You would set up the options dcredit, ucredit, ocredit. See man pam_cracklib for details on these options. I don't think it is possible to do exactly as you have described, but you could force them to have at least one of each type of character or something similar. If you really want to have exactly those rules you could write your own pam module.

You should also take a look at man pam.d. It will clue you in on where to look for the pam configuration files. On FC6 it is accomplished in a combination of files. /etc/pam.d/passwd which has includes that point to /etc/pam.d/system-auth a symbolic link of /etc/pam.d/system-auth-ac. In there you should find pam_cracklib.so and be able to add the options to it. man pam gives a good overview of how it all fits together.

Bill
 
  


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
updating samba passwords with system passwords paranoid times Linux - Software 3 10-03-2006 09:04 PM
How to turn OFF strong passwords? kkempter Red Hat 1 02-22-2005 07:55 AM
Sync MySQL passwords with local account passwords? turbine216 Linux - Software 2 02-18-2005 03:15 AM
Completely uninstalling MySQL and its passwords passwords...how? I locked myself out! Baix Linux - Newbie 2 01-30-2005 04:10 PM
Is there a way to sync Samba passwords with linux user passwords MarleyGPN Linux - Networking 2 09-09-2003 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:02 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