How To Set Password Policies In Linux

Set Password Policies In Linux

6 Responses

  1. Nguyễn Anh Tú says:

    Nice article. Great work!

  2. Eddie O'Connor says:

    Awesome information! I wish you guys would come out with your OWN Linux Administration Book….(one that covers both the Debian side and the Red Hat side!) It would be the Number One Sold Book in the Open Source World!…LoL! There’s nothing more annoying as a Linux Admin than to get ready to do some CLI work only to find out its the “other” Linux system (either you’re in an RHEL-world and the box you’re connected to is Debian based…..else you’re in a Debian-centric network and you’ve just connected to an RHEL box) it would make administration SO much easier if there was just ONE reference manual that you needed to consult……well here’s to hoping it actually happens….(or would it be against some GPL-based rules?……or maybe Red Hat would come after you?….)

  3. starnight_cyber says:

    helo, i have a question with “Set password length in RPM based systems”
    authconfig, configuration file:/etc/security/pwquality.conf
    it is not enforced to comply with the rules, that is to say, take passminlen=8, but we can still set password less than 8 charaters.
    when we set such password, it will give us a hint, but we can still set such password.
    troublesome …

  4. Brad Reed says:

    The article really should be named “How To Set Password Policies In Linux using PAM,” since this only applies to linux systems that use PAM. Slackware, for example, does not.

  5. Milind Pawar says:

    Use/Try this if none works:

    #— Your Current password & TWO other passwords which you already used
    password required retry=6
    password sufficient sha512 shadow try_first_pass obscure use_authtok remember=3

    This make use of pam history module . Your old password will get stored in encypted form under -> etc/security/opasswd file

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.