Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 0

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

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

Updated /etc/pam.d/passwd
password required retry=3 minlen=8 dcredit=-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?

Old 10-15-2008, 02:23 PM   #2
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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration