Changeset 74f20a1


Ignore:
Timestamp:
06/01/2015 07:35:45 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:
1ddddef
Parents:
78b5501
Message:

Move 'other' pam configuration from shadow to pam

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

Location:
postlfs/security
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • postlfs/security/linux-pam.xml

    r78b5501 r74f20a1  
    196196    </para>
    197197
    198 <screen role="root"><userinput>rm -rfv /etc/pam.d</userinput></screen>
     198<screen role="root"><userinput>rm -fv /etc/pam.d/*</userinput></screen>
    199199
    200200    <para>
     
    337337
    338338# End /etc/pam.d/system-password</literal>
     339EOF</userinput></screen>
     340 
     341      <para>Now add a restrictive <filename>/etc/pam.d/other</filename>
     342      configuration file.  With this file, programs that are PAM aware will not
     343      run unless a configuration file specifically for that application is
     344      created.</para>
     345
     346<screen role="root"><userinput>cat &gt; /etc/pam.d/other &lt;&lt; "EOF"
     347<literal># Begin /etc/pam.d/other
     348
     349auth        required        pam_warn.so
     350auth        required        pam_deny.so
     351account     required        pam_warn.so
     352account     required        pam_deny.so
     353password    required        pam_warn.so
     354password    required        pam_deny.so
     355session     required        pam_warn.so
     356session     required        pam_deny.so
     357
     358# End /etc/pam.d/other</literal>
    339359EOF</userinput></screen>
    340360
  • postlfs/security/shadow.xml

    r78b5501 r74f20a1  
    478478      </sect4>
    479479
    480       <sect4>
    481         <title>Other</title>
    482 
    483         <para>
    484           Currently, <filename>/etc/pam.d/other</filename> is configured to
    485           allow anyone with an account on the machine to use PAM-aware programs
    486           without a configuration file for that program. After testing
    487           <application>Linux-PAM</application> for proper configuration, install
    488           a more restrictive <filename>other</filename> file so that
    489           program-specific configuration files are required:
    490         </para>
    491 
    492 <screen role="root"><userinput>cat &gt; /etc/pam.d/other &lt;&lt; "EOF"
    493 <literal># Begin /etc/pam.d/other
    494 
    495 auth        required        pam_warn.so
    496 auth        required        pam_deny.so
    497 account     required        pam_warn.so
    498 account     required        pam_deny.so
    499 password    required        pam_warn.so
    500 password    required        pam_deny.so
    501 session     required        pam_warn.so
    502 session     required        pam_deny.so
    503 
    504 # End /etc/pam.d/other</literal>
    505 EOF</userinput></screen>
    506       </sect4>
    507 
    508480      <sect4 id="pam-access">
    509481        <title>Configuring Login Access</title>
     
    542514
    543515<screen role="root"><userinput>[ -f /etc/limits ] &amp;&amp; mv -v /etc/limits{,.NOUSE}</userinput></screen>
     516
     517        <caution><para>Be sure to test the login capabilities of the system
     518        before logging out.  Errors in the configuration can casue a permanent
     519        lockout requiring a boot from an external source to correct the
     520        problem.</para></caution>
     521
    544522      </sect4>
    545523    </sect3>
     524
    546525  </sect2>
    547526
Note: See TracChangeset for help on using the changeset viewer.