LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2008, 12:08 PM   #1
ugur
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
Password


Hi
I've a problem and don't really understand how to solve it at the
moment.

Problem: Would like to control the password typed by the user, check
the length, etc...

Updated /etc/pam.d/passwd
password required pam_cracklib.so retry=3 minlen=8 dcredit=-2
ocredit=-2

Updated /etc/login.defs as well
changed PASS_MIN_LEN to 8 it was 5 before

But when trying to change the password by passwd and use ??45rN:
then it works but should not. The length of typed pwd is 7

If I change retry to 5 then the new password question retries 5 times,
but minlen and all other parameters don't work, or?

Another question is, how to apply the same rule as above when
creating a new user (if using User Manager)? E.g. It is now possible to
create a testuser with pwd blabla123

Shall I run some other program/scripts?

Is it true that if you set passwd to "??45r", then it is 5 chars that matches the criteria and the rest will be truncated?

What shall be done to force minlen=8?

Regards
Ugur
 
Old 10-15-2008, 02:23 PM   #2
lcole
Member
 
Registered: Aug 2003
Location: Oregon
Distribution: Ubuntu
Posts: 50

Rep: Reputation: 18
Default for Ucredit is 1 allowing for a 7 character password in this case if I understand pam_cracklibe correctly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Locking out a user when password expires, but allowing them to change their password kaplan71 Linux - Security 5 06-27-2008 08:12 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 05:11 AM
Password Recovery in Edubuntu 7.04 - In Terminal, Root Login : su , password : ????? farhannaeem13 Linux - Security 3 11-30-2007 10:59 AM
How can I change e-mail password(or linux account password) with php in website?? yusuf Programming 1 05-28-2004 10:39 AM


All times are GMT -5. The time now is 12:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration