LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-06-2007, 08:47 PM   #1
ryanlum
Member
 
Registered: Jul 2007
Posts: 47

Rep: Reputation: 15
Security Questions about Red Hat 9


Hi all,

I have 2 problems that i need to ask:
1. Is there a way to automatically force the user to change password during the initial login? as in not manually key in the command but store it into the configuration file?

2. Enabling stronger passwords.
in my /etc/pam.d/system-auth.
I have already set this
password requisite /lib/security/$ISA/pam_cracklib.so retry=3 minlen=8 lcredit=-1 ucredit=-1 dcredit=-1 ocredit=0 difok=3

but, when i log into the user to change passwords, i still can key in passwords like qwerty

any idea why is this happening?
 
Old 12-06-2007, 09:47 PM   #2
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45
1 - force the user to change their password when they login, expire the account. - passwd -e username

2 - In not sure here.

Last edited by FragInHell; 12-06-2007 at 09:52 PM.
 
Old 12-06-2007, 10:31 PM   #3
ryanlum
Member
 
Registered: Jul 2007
Posts: 47

Original Poster
Rep: Reputation: 15
for 1. yiah that is the normal way.
Is there a way to save it into the configuration file? so it will automatically add for each user?
 
Old 12-07-2007, 02:39 AM   #4
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45
no you could script it some thing to read through the password file and do it for each user, may require it bit of smarts to only work on user ids greater than 500 for example, should be easy enough.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
red hat 9 security updates rehtorisi Red Hat 4 08-14-2005 08:09 AM
Red Hat 9 vs Enterprise re security robertm Linux - Newbie 4 04-27-2004 05:24 PM
Red Hat 8 Security Question klytu Red Hat 3 03-25-2004 08:19 PM
Red Hat Security Patches robeb Linux - Security 1 05-20-2002 06:18 AM
Red Hat Security Advisory Aussie Linux - Security 0 02-28-2002 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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