LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-13-2010, 12:17 PM   #1
jbottiger
LQ Newbie
 
Registered: Oct 2008
Location: Central FL
Posts: 21

Rep: Reputation: 0
Password Complexity Question(s)/Issue(s)


My /etc/pam.d/system-auth file reads as follows:

#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required /lib/security/$ISA/pam_env.so
auth sufficient /lib/security/$ISA/pam_unix.so try_first_pass
auth required /lib/security/$ISA/pam_succeed_if.so uid >=500 quiet
auth required /lib/security/$ISA/pam_deny.so
auth required /lib/security/$ISA/pam_tally.so deny=3 onerr=fail no_magic_root unlock_time=300

account required /lib/security/$ISA/pam_tally.so deny=3 onerr=fail no_magic_root reset lock_time=900
account required /lib/security/$ISA/pam_unix.so
account sufficient /lib/security/$ISA/pam_succeed_if.so uid < 500 quiet
account required /lib/security/$ISA/pam_permit.so

password required /lib/security/$ISA/pam_cracklib.so retry=3 minlen=14 remember=24 dcredit=-1 ucredit=-1 ocredit=-1 lcredit=-1
password sufficient /lib/security/$ISA/pam_unix.so md5 shadow try_first_pass use_authok
password required /lib/security/$ISA/pam_deny.so

session optional /lib/security/$ISA/pam_keyinit.so revoke
session required /lib/security/$ISA/pam_limits.so
session [success=1 default=ignore] /lib/security/$ISA/pam_succeed_if.so service in crond quiet use_uid
session required /lib/security/$ISA/pam_unix.so debug

password required /lib/security/$ISA/pam_stack.so retry=3 minlen=14 remember=24 dcredit=-1 ucredit=-1 ocredit=-1 lcredit=-1

Based on the above data, when I create users in RHEL5.1, I should not be able to set passwords with fewer than 14 characters, and they must contain at least one each of the following: upper-case, lower-case, digit, other character. However, I seem to be able to create simple passwords without difficulty.

Example: I created a user account "tsmith" in terminal mode (/usr/sbin/useradd, or something similar). When prompted for a password, I type "soccer". Even though the system returns "BAD PASSWORD: it is based on a dictionary word. Retype Password:", "soccer" is NOT a dictionary word. In fact, when I retype "soccer", the system accepts it by displaying "passwd: all authentication tokens updated successfully".

Also, I cannot enforce the password complexity rules in the GUI version of setting up user accounts (System-->Administration-->Users and Groups). When I click "Add User", I type in a simple password, click OK, and the new user appears with no error/warning messages of any kind.

Please advise if the data in my /etc/pam.d/system-auth file is incorrect and/or what other files need to be modified to enforce the preferred password complexity rules. Thanks.


Sincerely,

John J. bottiger
 
Old 04-13-2010, 12:38 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
@jbottiger: It's better to start a new thread rather than reviving one from 2004.
 
Old 04-13-2010, 01:38 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
jbottiger, I've moved your post from where you originally made it to a thread of its own.

Please don't resurrect dead threads.

Last edited by win32sux; 04-13-2010 at 01:39 PM.
 
Old 04-13-2010, 07:08 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
@jbottiger: Awhile back I put together a "howto" on pam_passwdqc:

http://www.daemonforums.org/showthread.php?t=1019

(I mentioned pam_cracklib there as well.) There is certainly nothing wrong with pam_cracklib, but you'll see me recommending pam_passwdqc over and over again on these forums, for its feature set and relative ease of use. Have a look and see if you'd like to try that approach.

One more thing -- I notice that you've designated pam_cracklib as "required" rather than "requisite" in your password stack. That may have some unintended consequences. (I haven't carefully evaluated your entire stack.)
 
Old 04-14-2010, 07:24 AM   #5
jbottiger
LQ Newbie
 
Registered: Oct 2008
Location: Central FL
Posts: 21

Original Poster
Rep: Reputation: 0
Smile

As per your request, I will do my best to start new threads. I did not realize the age of these old threads, but I was trying to find existing solutions to my issue which I did, albeit old information.

Thanks for reminding me.
 
Old 04-14-2010, 07:27 AM   #6
jbottiger
LQ Newbie
 
Registered: Oct 2008
Location: Central FL
Posts: 21

Original Poster
Rep: Reputation: 0
Final Analysis--Password Complexities

BTW--I found out that when logged in as "root", I have the power to set any password I like. Thus, "root" is the exception rather than the rule WRT password complexities. Standard users should be restricted in terms of setting passwords outside the scope of complexity rules.

I received this information from a reliable source at Red Hat. My ISSM also confirmed this, and he says that this is OK.

Thanks for helping.
 
  


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
Password Complexity Rules zok Linux - Security 1 04-17-2007 04:34 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:49 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