Results 1 to 2 of 2

Thread: Password policy with libpam cracklib

  1. #1
    Join Date
    Jan 2010

    Password policy with libpam cracklib

    sudo apt-get install libpam-cracklib
    I am not getting cracklib password complexity to work on my system. This is what my settings look like in /etc/pam.d/common-password
    # here are the per-package modules (the "Primary" block)
    password        required retry=3 minlen=10 difok=3 dcredit=1 ucredit=1 lcredit=1 ocredit=1
    password        required obscure try_first_pass sha512 use_authtok
    #next line is default
    #password       [success=1 default=ignore] obscure try_first_pass sha512 use_authtok
    # here's the fallback if no module succeeds
    password        requisite             
    # prime the stack with a positive return value if there isn't one already;
    # this avoids us returning an error just because nothing sets a success code
    # since the modules above will each just jump around
    password        required              
    # and here are more per-package modules (the "Additional" block)
    # end of pam-auth-update config
    I saved file and tried to change file with a regular user. It still accepts 6 lowercase char passwords. Im trying to read the man pages, but Im not sure I understand them really. And there aren't so many good guides on the net. Does cracklib-check use my common-password settings?
    I tried commenting out line, tried to play with different values in the line, but nothing seems to change, and get it working. Im running Ubuntu 10.04.4 LTS.

  2. #2
    Join Date
    Oct 2009
    Ubuntu 16.04 Xenial Xerus

    Re: Password policy with libpam cracklib

    This probably won't help, but have you read this?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts