Changeset 62066a54


Ignore:
Timestamp:
12/25/2018 01:15:21 AM (6 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 12.2, 8.4, 9.0, 9.1, bdubbs/svn, gimp3, 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/for-12.3, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/spidermonkey128, 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

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    re7594ad r62066a54  
    11<!-- $LastChangedBy$ $Date$ -->
    22
    3 <!ENTITY day          "23">                   <!-- Always 2 digits -->
     3<!ENTITY day          "25">                   <!-- Always 2 digits -->
    44<!ENTITY month        "12">                   <!-- Always 2 digits -->
    55<!ENTITY year         "2018">
     
    77<!ENTITY copyholder   "The BLFS Development Team">
    88<!ENTITY version      "&year;-&month;-&day;">
    9 <!ENTITY releasedate  "December 23rd, &year;">
     9<!ENTITY releasedate  "December 25rd, &year;">
    1010<!ENTITY pubdate      "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
    1111<!ENTITY blfs-version "svn">                  <!-- svn|[release #] -->
  • introduction/welcome/changelog.xml

    re7594ad r62066a54  
    4343-->
    4444    <listitem>
     45      <para>December 25th, 2018</para>
     46      <itemizedlist>
     47        <listitem>
     48          <para>[dj] - Update pam_cracklib configuration with modern options
     49          and provide replacement configuration with pam_pwqaulity.</para>
     50        </listitem>
     51      </itemizedlist>
     52    </listitem>
     53
     54    <listitem>
    4555      <para>December 23rd, 2018</para>
    4656      <itemizedlist>
  • 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>
  • postlfs/security/linux-pam.xml

    re7594ad r62066a54  
    318318
    319319# check new passwords for strength (man pam_cracklib)
    320 password  required    pam_cracklib.so   type=Linux retry=3 difok=5 \
    321                                         difignore=23 minlen=9 dcredit=1 \
    322                                         ucredit=1 lcredit=1 ocredit=1 \
    323                                         dictpath=/lib/cracklib/pw_dict
     320password  required    pam_cracklib.so    authtok_type=UNIX retry=1 difok=5 \
     321                                         minlen=9 dcredit=1 ucredit=1 \
     322                                         lcredit=1 ocredit=1 minclass=0 \
     323                                         maxrepeat=0 maxsequence0 \
     324                                         maxclassrepeat=0 \
     325                                         dictpath=/lib/cracklib/pw_dict
    324326# use sha512 hash for encryption, use shadow, and use the
    325327# authentication token (chosen password) set by pam_cracklib
    326328# above (or any previous modules)
    327 password  required    pam_unix.so       sha512 shadow use_authtok
     329password  required    pam_unix.so        sha512 shadow use_authtok
    328330
    329331# End /etc/pam.d/system-password</literal>
Note: See TracChangeset for help on using the changeset viewer.