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 08-06-2012, 12:58 AM   #1
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Rep: Reputation: 0
Linux Debian Password policy


Hello,
i want tot enable password policy (complex password) in debian 4.0 , i used pam_cracklib.so , but it didn't work good.

any suggestion,
Thanks
 
Old 08-06-2012, 01:06 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Debian 4 stopped getting security updates over two years ago[1]. Is there any reason you haven't upgraded?

Regarding your specific problem: what do you mean by "it didn't work good". What happened? What error messages?

Evo2.

1. http://www.debian.org/releases/etch/
 
Old 08-06-2012, 11:51 PM   #3
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
finally done it, it was misunderstanding .. here is what i did:

NOTE) if you are root and create the password for that user, then you can make it anything you want (regardless of the cracklib settings). You'll still see the hard-coded "password too short" message if you use a short password, but it will still let you use it. You won't even see the cracklib warnings like "too simple" at all. However, if you log in as that user and try to change the passwd, all the cracklib requirements will apply.

md5 : Encrypt new passwords with the MD5 algorithm.
nullok : Allow users to access services even if their password is blank.
nullok_secure :Idem, as long as PAM_TTY equals one of the values found in/etc/securetty.
obscure : Enable some extra checks on password strength.
ucredit: Uppercase
dcredit: digit
ocredit:Non-alphanumeric
difok: the minimum number of characters that must be different from the previous password.
lcredit:lowercase

--
Apt-get install libpam-cracklib

/etc/pam.d/common-password

password required pam_unix.so obscure md5
password required pam_cracklib.so minlen=6 ucredit=-1 ocredit=-2 dcredit=-1


Thank u all,
 
  


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
How to set the password policy and lockout policy bin_shell Linux - Security 4 03-24-2010 03:30 PM
What is the default password policy on Debian? mesh2005 Debian 5 07-14-2009 03:52 PM
Linux Password Policy MaverickApollo Linux - Security 2 02-07-2004 06:49 AM

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

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