Announcement

Collapse
No announcement yet.

Force secure user passwords?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Force secure user passwords?

    Looking for a way to force my users to choose secure passwords.
    At setup I give them random passwords like G^s%i1s_*7FsT but as soon as they log in they change to simple passwords like 1234 or cat or their username...so it's a cracker's dream.
    I've seen systems where your password is checked for quality in the past (old RedHat used to force secure passwords).
    I'd like to enforce a minimum length of 8 chars, must include at least 1 digit and one of !@#$%^&*()_+
    Anyone know howto in (k)ubuntu?
    Dont pretend you havent noticed my cardboard box, Julia, because I know you have!

    #2
    Re: Force secure user passwords?

    Answering my own question:
    Install libpam-cracklib
    edit /etc/pam.d/common-password

    comment out the line
    password required pam_unix.so nullok obscure min=4 max=8 md5

    Remove comment from the line
    password required pam_cracklib.so retry=3 minlen=6 difok=3

    Easy
    Dont pretend you havent noticed my cardboard box, Julia, because I know you have!

    Comment

    Working...
    X