Changeset 8f68b03 for postlfs


Ignore:
Timestamp:
03/31/2006 03:16:39 PM (18 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
85feb93
Parents:
919d2d9
Message:

Updated to Shadow-4.0.15 (now current with the LFS version)

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/security/shadow.xml

    r919d2d9 r8f68b03  
    77  <!ENTITY shadow-download-http "http://ftp.pld.org.pl/software/shadow/shadow-&shadow-version;.tar.bz2">
    88  <!ENTITY shadow-download-ftp  "ftp://ftp.pld.org.pl/software/shadow/shadow-&shadow-version;.tar.bz2">
    9   <!ENTITY shadow-md5sum        "5c6a105d89afb0900922260e9c5650cc">
    10   <!ENTITY shadow-size          "1.0 MB">
    11   <!ENTITY shadow-buildsize     "13.6 MB">
     9  <!ENTITY shadow-md5sum        "a0452fa989f8ba45023cc5a08136568e">
     10  <!ENTITY shadow-size          "1.2 MB">
     11  <!ENTITY shadow-buildsize     "15.5 MB">
    1212  <!ENTITY shadow-time          "0.3 SBU">
    1313]>
     
    6666    </itemizedlist>
    6767
     68    <!--
    6869    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    6970    <itemizedlist spacing='compact'>
     
    7374      </listitem>
    7475    </itemizedlist>
     76    -->
    7577
    7678    <bridgehead renderas="sect3">Shadow Dependencies</bridgehead>
     
    9496      password support via the <application>CrackLib</application> library
    9597      and you have not installed <application>Linux-PAM</application>, ensure
    96       you replace the <parameter>--with-libpam --without-libcrack</parameter>
    97       parameters with <parameter>--with-libcrack</parameter>.</para>
     98      you add the <parameter>--with-libcrack</parameter> parameter to the
     99      <command>configure</command> script below.</para>
    98100    </important>
    99101
     
    101103    commands:</para>
    102104
    103 <screen><userinput>patch -Np1 -i ../shadow-&shadow-version;-configure_fix-1.patch &amp;&amp;
    104 ./configure --libdir=/lib --enable-shared \
    105     --with-libpam --without-libcrack &amp;&amp;
     105<screen><userinput>./configure --libdir=/lib \
     106            --enable-shared \
     107            --without-selinux &amp;&amp;
    106108sed -i 's/groups$(EXEEXT) //' src/Makefile &amp;&amp;
    107109find man -name Makefile -exec sed -i '/groups/d' {} \; &amp;&amp;
     110sed -i -e 's/ ko//' \
     111       -e 's/ zh_CN zh_TW//' \
     112    man/Makefile &amp;&amp;
     113
     114for i in de es fi fr id it pt_BR; do
     115    convert-mans UTF-8 ISO-8859-1 man/${i}/*.?
     116done &amp;&amp;
     117
     118for i in cs hu pl; do
     119    convert-mans UTF-8 ISO-8859-2 man/${i}/*.?
     120done &amp;&amp;
     121
     122convert-mans UTF-8 EUC-JP man/ja/*.? &amp;&amp;
     123convert-mans UTF-8 KOI8-R man/ru/*.? &amp;&amp;
     124convert-mans UTF-8 ISO-8859-9 man/tr/*.? &amp;&amp;
     125
    108126make</userinput></screen>
    109127
     
    123141    <title>Command Explanations</title>
    124142
    125     <para><parameter>--without-libcrack</parameter>: This switch tells
     143    <!-- Removed the -with-libpam and -without-libcrack options from the
     144         default as these are the defaults. Pam will automatically be picked
     145         up if it is installed, and CrackLib won't be used unless specifically
     146         requested via -with-libcrack
     147    <para><parameter>-without-libcrack</parameter>: This switch tells
    126148    <application>Shadow</application> not to use
    127149    <filename class='libraryfile'>libcrack</filename>. This is desired as
    128150    <application>Linux-PAM</application> will provide
    129151    <filename class='libraryfile'>libcrack</filename> functionality.</para>
    130 
    131     <para><command>sed -i ...</command>: These commands are used to suppress
    132     the installation of the <command>groups</command> program and man pages
    133     as the version from the <application>Coreutils</application> package
    134     installed during LFS is preferred.</para>
     152    -->
     153
     154    <para><parameter>--without-selinux</parameter>: Support for selinux is
     155    enabled by default, but selinux is not built in a base LFS system. The
     156    <command>configure</command> script will fail if this option is not
     157    used.</para>
     158
     159    <para><command>sed -i 's/groups$(EXEEXT) //' src/Makefile</command>: This
     160    command is used to suppress the installation of the
     161    <command>groups</command> program as the version from the
     162    <application>Coreutils</application> package installed during LFS is
     163    preferred.</para>
     164
     165    <para><command>find man -name Makefile -exec ... {} \;</command>: This
     166    command is used to suppress the installation of the
     167    <command>groups</command> man pages so the existing ones installed from
     168    the <application>Coreutils</application> package are not replaced.</para>
     169
     170    <para><command>sed -i -e '...' -e '...' man/Makefile</command>: This
     171    command disables the installation of Chinese and Korean manual pages, since
     172    <application>Man-DB</application> cannot format them properly.</para>
     173
     174    <para><command>convert-mans ...</command>: These commands are used to
     175    convert some of the man pages so that <application>Man-DB</application>
     176    will display them in the recommended encodings.</para>
     177
     178    <para><command>mv -v /usr/bin/passwd /bin</command>: The
     179    <command>passwd</command> program may be needed during times when the
     180    <filename class='directory'>/usr</filename> filesystem is not mounted so
     181    it is moved into the root partition.</para>
     182
     183    <para><command>mv -v ...; rm -v ...; ln -v ...</command>: These commands
     184    are used to move the <filename class='libraryfile'>libshadow</filename>
     185    library to the root partition to support the moving of the
     186    <command>passwd</command> program earlier.</para>
    135187
    136188  </sect2>
     
    138190  <sect2 role="configuration">
    139191    <title>Configuring Linux-PAM to Work with Shadow</title>
     192
     193    <note>
     194      <para>The rest of the page is devoted to configuring
     195      <application>Shadow</application> to work properly with
     196      <application>Linux-PAM</application>. If you do not have
     197      <application>Linux-PAM</application> installed, and you reinstalled
     198      <application>Shadow</application> to support strong passwords via
     199      the <application>CrackLib</application> library, no further configuration
     200      is required.</para>
     201    </note>
    140202
    141203    <sect3 id="pam.d">
     
    166228    <sect3>
    167229      <title>Configuration Information</title>
     230
     231      <para>Configuring your system to use <application>Linux-PAM</application>
     232      can be a complex task. The information below will provide a basic setup
     233      so that <application>Shadow</application>'s login and password
     234      functionality will work effectively with
     235      <application>Linux-PAM</application>. Review the information and links on
     236      the <xref linkend="linux-pam"/> page for further configuration
     237      information. For information specific to integrating
     238      <application>Shadow</application>, <application>Linux-PAM</application>
     239      and <application>CrackLib</application>, you can visit the following
     240      links:</para>
     241
     242      <itemizedlist spacing="compact">
     243      <listitem>
     244        <para><ulink
     245        url="http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam-6.html#ss6.3"/></para>
     246      </listitem>
     247      <listitem>
     248        <para><ulink
     249        url="http://www.deer-run.com/~hal/sysadmin/pam_cracklib.html"/></para>
     250      </listitem>
     251      </itemizedlist>
    168252
    169253      <sect4 id="pam-login-defs">
     
    191275                ULIMIT ENV_TZ ENV_HZ ENV_SUPATH \
    192276                ENV_PATH QMAIL_DIR MAIL_DIR MAIL_FILE \
    193                 CHFN_AUTH FAILLOG_ENAB QUOTAS_ENAB FTMP_FILE
     277                CHFN_AUTH FAILLOG_ENAB QUOTAS_ENAB FTMP_FILE \
     278                OBSCURE_CHECKS_ENAB CRACKLIB_DICTPATH \
     279                PASS_CHANGE_TRIES PASS_ALWAYS_WARN
    194280do
    195281    sed -i "s/^$FUNCTION/# &amp;/" /etc/login.defs
    196282done</userinput></screen>
     283
     284        <!-- Moved the commenting of these four parameters into the section
     285        above. If PAM is installed, it complains if these are not commented
     286        regardless if CrackLib is installed.
    197287
    198288        <para>If you have <application>CrackLib</application> installed,
     
    205295    sed -i "s/^$FUNCTION/# &amp;/" /etc/login.defs
    206296done</userinput></screen>
     297
     298        -->
    207299
    208300      </sect4>
Note: See TracChangeset for help on using the changeset viewer.