Ignore:
Timestamp:
06/01/2015 05:55:07 PM (9 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, nosym, perl-modules, 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:
74f20a1
Parents:
0d12bbe
Message:

Move generic PAM configuration from shadow to the PAM section

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/security/shadow.xml

    r0d12bbe r78b5501  
    337337
    338338      <sect4>
    339         <title>'system-account'</title>
    340 
    341 <screen role="root"><userinput>cat &gt; /etc/pam.d/system-account &lt;&lt; "EOF"
    342 <literal># Begin /etc/pam.d/system-account
    343 
    344 account   required    pam_unix.so
    345 
    346 # End /etc/pam.d/system-account</literal>
    347 EOF</userinput></screen>
    348       </sect4>
    349 
    350       <sect4>
    351         <title>'system-auth'</title>
    352 
    353 <screen role="root"><userinput>cat &gt; /etc/pam.d/system-auth &lt;&lt; "EOF"
    354 <literal># Begin /etc/pam.d/system-auth
    355 
    356 auth      required    pam_unix.so
    357 
    358 # End /etc/pam.d/system-auth</literal>
    359 EOF</userinput></screen>
    360       </sect4>
    361 
    362       <sect4>
    363         <title>'system-passwd' (with cracklib)</title>
    364 
    365 <screen role="root"><userinput>cat &gt; /etc/pam.d/system-password &lt;&lt; "EOF"
    366 <literal># Begin /etc/pam.d/system-password
    367 
    368 # check new passwords for strength (man pam_cracklib)
    369 password  required    pam_cracklib.so   type=Linux retry=3 difok=5 \
    370                                         difignore=23 minlen=9 dcredit=1 \
    371                                         ucredit=1 lcredit=1 ocredit=1 \
    372                                         dictpath=/lib/cracklib/pw_dict
    373 # use sha512 hash for encryption, use shadow, and use the
    374 # authentication token (chosen password) set by pam_cracklib
    375 # above (or any previous modules)
    376 password  required    pam_unix.so       sha512 shadow use_authtok
    377 
    378 # End /etc/pam.d/system-password</literal>
    379 EOF</userinput></screen>
    380 
    381         <note>
    382           <para>
    383             In its default configuration, owing to credits, pam_cracklib will
    384             allow multiple case passwords as short as 6 characters, even with
    385             the <parameter>minlen</parameter> value set to 11. You should review
    386             the pam_cracklib(8) man page and determine if these default values
    387             are acceptable for the security of your system.
    388           </para>
    389         </note>
    390       </sect4>
    391 
    392       <sect4>
    393         <title>'system-passwd' (without cracklib)</title>
    394 
    395 <screen role="root"><userinput>cat &gt; /etc/pam.d/system-password &lt;&lt; "EOF"
    396 <literal># Begin /etc/pam.d/system-password
    397 
    398 # use sha512 hash for encryption, use shadow, and try to use any previously
    399 # defined authentication token (chosen password) set by any prior module
    400 password  required    pam_unix.so       sha512 shadow try_first_pass
    401 
    402 # End /etc/pam.d/system-password</literal>
    403 EOF</userinput></screen>
    404       </sect4>
    405 
    406       <sect4>
    407         <title>'system-session'</title>
    408 
    409 <screen role="root"><userinput>cat &gt; /etc/pam.d/system-session &lt;&lt; "EOF"
    410 <literal># Begin /etc/pam.d/system-session
    411 
    412 session   required    pam_unix.so
    413 
    414 # End /etc/pam.d/system-session</literal>
    415 EOF</userinput></screen>
    416       </sect4>
    417 
    418       <sect4>
    419339        <title>'login'</title>
    420340
Note: See TracChangeset for help on using the changeset viewer.