Ignore:
Timestamp:
12/25/2018 01:15:21 AM (5 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 8.4, 9.0, 9.1, bdubbs/svn, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
a5660ad
Parents:
e7594ad
Message:

Update pam_cracklib configuration with modern options and provide replacement configuration with pam_pwqaulity.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20872 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/security/libpwquality.xml

    re7594ad r62066a54  
    114114  </sect2>
    115115
     116  <sect2 role="configuration">
     117    <title>Configuring Libpwquality</title>
     118
     119    <para>
     120      <application>Libpwquality</application> is intended to be a
     121      functional replacement for the <filename>pam_cracklib.so</filename>
     122      module with additional options. To replace the
     123      <filename>pam_cracklib.so</filename> module with the
     124      <filename>pam_pwquality.so</filename> module, execute the following
     125      commands as the <systemitem class="username">root</systemitem> user:
     126    </para>
     127
     128<screen role="root"><userinput>mv /etc/pam.d/system-password{,.orig} &amp;&amp;
     129cat &gt; /etc/pam.d/system-password &lt;&lt; "EOF"
     130<literal># Begin /etc/pam.d/system-password
     131
     132# check new passwords for strength (man pam_pwquality)
     133password  required    pam_pwquality.so   authtok_type=UNIX retry=1 difok=1 \
     134                                         minlen=8 dcredit=0 ucredit=0 \
     135                                         lcredit=0 ocredit=0 minclass=1 \
     136                                         maxrepeat=0 maxsequence=0 \
     137                                         maxclassrepeat=0 geoscheck=0 \
     138                                         dictcheck=1 usercheck=1 \
     139                                         enforcing=1 badwords="" \
     140                                         dictpath=/lib/cracklib/pw_dict
     141# use sha512 hash for encryption, use shadow, and use the
     142# authentication token (chosen password) set by pam_pwquality
     143# above (or any previous modules)
     144password  required    pam_unix.so        sha512 shadow use_authtok
     145
     146# End /etc/pam.d/system-password</literal>
     147EOF
     148</userinput></screen>
     149
     150  </sect2>
     151   
    116152  <sect2 role="content">
    117153    <title>Contents</title>
Note: See TracChangeset for help on using the changeset viewer.