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 10-20-2011, 03:42 AM   #1
j_h
LQ Newbie
 
Registered: Oct 2011
Posts: 26

Rep: Reputation: Disabled
Set password policy per-user using cracklib?


Hi,

I'd like to set the minimum length of password differently for normal users and root.

I don't think it's possible to do via YaST (openSUSE settings panel) - 'global' password settings has a min length option, but under user account settings it only gives password ageing options.

Is it possible to do this using cracklib?
 
Old 10-20-2011, 08:46 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
See the following link: http://linux.about.com/cs/linux101/g/cracklib.htm
From the link:
Quote:
CrackLib tests passwords to determine whether they match certainsecurity-oriented characteristics, with the purpose of stopping users from choosing passwords that are easy to guess.
 
0 members found this post helpful.
Old 10-20-2011, 08:59 AM   #3
j_h
LQ Newbie
 
Registered: Oct 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
Noway,

Thanks for the link, but it doesn't actually answer my question. I already know how to enforce (across-the-board) min length using cracklib.

What I want to know is if there is any way in linux (via cracklib or otherwise) to have different minimum lengths for different users or groups, rather than having one global value.

Thanks in advance if anyone can help me solve this, or at least confirm it's not possible!
 
Old 10-20-2011, 09:10 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
AFAIK cracklib nor passwdqc offers that kind of granular control.
 
Old 10-20-2011, 09:33 AM   #5
j_h
LQ Newbie
 
Registered: Oct 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
I see, thanks for confirming
 
Old 12-09-2013, 09:43 PM   #6
dewesh
LQ Newbie
 
Registered: Dec 2013
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by j_h View Post
I see, thanks for confirming
Hi ,
I am trying to set user or group level password policy.
could you please share me your configuration.


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
password policy affecting root user satya123 Linux - Newbie 2 08-04-2011 04:46 AM
[PHP] checking password strength -- cracklib recommended? zirias Programming 7 07-18-2010 06:52 AM
How to set the password policy and lockout policy bin_shell Linux - Security 4 03-24-2010 03:30 PM
password policy expiry in the user sammee Linux - Newbie 5 09-16-2008 08:51 AM
PAM set a no user login policy varoquau Linux - Security 2 10-28-2003 06:37 AM

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

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