r8614 - in trunk/BOOK: . chapter01 chapter03 chapter06

randy at linuxfromscratch.org randy at linuxfromscratch.org
Thu Oct 9 13:47:01 PDT 2008


Author: randy
Date: 2008-10-09 14:47:01 -0600 (Thu, 09 Oct 2008)
New Revision: 8614

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter01/whatsnew.xml
   trunk/BOOK/chapter03/patches.xml
   trunk/BOOK/chapter06/shadow.xml
   trunk/BOOK/packages.ent
   trunk/BOOK/patches.ent
Log:
Updated Shadow to 4.1.2.1

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2008-10-09 18:45:51 UTC (rev 8613)
+++ trunk/BOOK/chapter01/changelog.xml	2008-10-09 20:47:01 UTC (rev 8614)
@@ -41,6 +41,9 @@
       <para>2008-10-09</para>
       <itemizedlist>
         <listitem>
+          <para>[randy] - Updated Shadow to 4.1.2.1.</para>
+        </listitem>
+        <listitem>
           <para>[randy] - Updated Man-DB to 2.5.2.</para>
         </listitem>
         <listitem>

Modified: trunk/BOOK/chapter01/whatsnew.xml
===================================================================
--- trunk/BOOK/chapter01/whatsnew.xml	2008-10-09 18:45:51 UTC (rev 8613)
+++ trunk/BOOK/chapter01/whatsnew.xml	2008-10-09 20:47:01 UTC (rev 8614)
@@ -167,9 +167,9 @@
     <!--<listitem>
       <para>Sed &sed-version;</para>
     </listitem>-->
-    <!--<listitem>
+    <listitem>
       <para>Shadow &shadow-version;</para>
-    </listitem>-->
+    </listitem>
     <listitem>
       <para>Sysklogd &sysklogd-version;</para>
     </listitem>
@@ -328,7 +328,7 @@
     </listitem>
 
     <listitem>
-      <para>mktemp-1.5</para>
+      <para>mktemp 1.5</para>
     </listitem>
 
     <listitem>
@@ -344,6 +344,10 @@
     </listitem>
 
     <listitem>
+      <para>shadow-4.0.18.1-useradd_fix-2.patch</para>
+    </listitem>
+
+    <listitem>
       <para>sysklogd-1.4.1-8bit-1.patch</para>
     </listitem>
 

Modified: trunk/BOOK/chapter03/patches.xml
===================================================================
--- trunk/BOOK/chapter03/patches.xml	2008-10-09 18:45:51 UTC (rev 8613)
+++ trunk/BOOK/chapter03/patches.xml	2008-10-09 20:47:01 UTC (rev 8614)
@@ -234,13 +234,13 @@
       </listitem>
     </varlistentry>
 
-    <varlistentry>
+    <!-- <varlistentry>
       <term>Shadow Useradd Patch - <token>&shadow-useradd-patch-size;</token>:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&shadow-useradd-patch;"/></para>
         <para>MD5 sum: <literal>&shadow-useradd-patch-md5;</literal></para>
       </listitem>
-    </varlistentry>
+    </varlistentry> -->
 
 
     <varlistentry>

Modified: trunk/BOOK/chapter06/shadow.xml
===================================================================
--- trunk/BOOK/chapter06/shadow.xml	2008-10-09 18:45:51 UTC (rev 8613)
+++ trunk/BOOK/chapter06/shadow.xml	2008-10-09 20:47:01 UTC (rev 8614)
@@ -44,50 +44,33 @@
     <note>
       <para>If you would like to enforce the use of strong passwords, refer to
       <ulink url="&blfs-root;view/svn/postlfs/cracklib.html"/> for installing
-      Cracklib prior to building Shadow. Then add
+      CrackLib prior to building Shadow. Then add
       <parameter>--with-libcrack</parameter> to the <command>configure</command>
       command below.</para>
     </note>
 
-    <para>Fix a bug in the <command>useradd</command> and
+    <!-- <para>Fix a bug in the <command>useradd</command> and
     <command>usermod</command> programs which prevent them from accepting group
     names rather than group ID numbers to the <option>-g</option> option:</para>
 
 <screen><userinput remap="pre">patch -Np1 -i ../&shadow-useradd-patch;</userinput></screen>
+   -->
 
-    <para>Prepare Shadow for compilation:</para>
-
-<screen><userinput remap="configure">./configure --libdir=/lib --sysconfdir=/etc --enable-shared \
-    --without-selinux</userinput></screen>
-
-    <variablelist>
-      <title>The meaning of the configure options:</title>
-
-      <varlistentry>
-        <term><parameter>--without-selinux</parameter></term>
-        <listitem>
-          <para>Support for selinux is enabled by default, but selinux is not
-          built in a base LFS system.  The <command>configure</command> script
-          will fail if this option is not used.</para>
-        </listitem>
-      </varlistentry>
-
-    </variablelist>
-
     <para>Disable the installation of the <command>groups</command> program
     and its man pages, as Coreutils provides a better version:</para>
 
-<screen><userinput remap="configure">sed -i 's/groups$(EXEEXT) //' src/Makefile
-find man -name Makefile -exec sed -i 's/groups\.1 / /' {} \;</userinput></screen>
+<screen><userinput remap="configure">sed -i 's/groups$(EXEEXT) //' src/Makefile.in
+find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;</userinput></screen>
 
     <para>Disable the installation of Chinese and Korean manual pages, since
     Man-DB cannot format them properly:</para>
 
-<screen><userinput remap="configure">sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile</userinput></screen>
+<screen><userinput remap="configure">sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in</userinput></screen>
 
     <para>Shadow supplies other manual pages in a UTF-8 encoding.  Man-DB
     can display these in the recommended encodings by using the
-    <command>convert-mans</command> script which we installed:</para>
+    <command>convert-mans</command> script which was installed during the
+    Man-DB package:</para>
 
 <screen><userinput remap="configure">for i in de es fi fr id it pt_BR; do
     convert-mans UTF-8 ISO-8859-1 man/${i}/*.?
@@ -109,8 +92,8 @@
     for user mailboxes that Shadow uses by default to the <filename
     class="directory">/var/mail</filename> location used currently:</para>
 
-<screen><userinput remap="configure">sed -i -e 's@#MD5_CRYPT_ENAB.no at MD5_CRYPT_ENAB yes@' \
-    -e 's@/var/spool/mail@/var/mail@' etc/login.defs</userinput></screen>
+<screen><userinput remap="configure">sed -i -e 's@#ENCRYPT_METHOD DES at ENCRYPT_METHOD MD5@' \
+       -e 's@/var/spool/mail@/var/mail@' etc/login.defs</userinput></screen>
 
     <note>
       <para>If you chose to build Shadow with Cracklib support, run the following:</para>
@@ -119,6 +102,29 @@
     etc/login.defs</userinput></screen>
     </note>
 
+    <para>Prepare Shadow for compilation:</para>
+
+<!-- Keeping this in case we revert to an older version
+<screen><userinput remap="configure">./configure -libdir=/lib -sysconfdir=/etc -enable-shared \
+    -without-selinux</userinput></screen>
+-->
+
+<screen><userinput remap="configure">./configure --sysconfdir=/etc</userinput></screen>
+
+    <!-- <variablelist>
+      <title>The meaning of the configure options:</title>
+
+      <varlistentry>
+        <term><parameter>-without-selinux</parameter></term>
+        <listitem>
+          <para>Support for selinux is enabled by default, but selinux is not
+          built in a base LFS system.  The <command>configure</command> script
+          will fail if this option is not used.</para>
+        </listitem>
+      </varlistentry>
+
+    </variablelist> -->
+
     <para>Compile the package:</para>
 
 <screen><userinput remap="make">make</userinput></screen>
@@ -133,11 +139,11 @@
 
 <screen><userinput remap="install">mv -v /usr/bin/passwd /bin</userinput></screen>
 
-    <para>Move Shadow's libraries to more appropriate locations:</para>
+    <!-- <para>Move Shadow's libraries to more appropriate locations:</para>
 
 <screen><userinput remap="install">mv -v /lib/libshadow.*a /usr/lib
 rm -v /lib/libshadow.so
-ln -sfv ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen>
+ln -sfv ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen> -->
 
   </sect2>
 
@@ -167,13 +173,53 @@
 <screen><userinput>grpconv</userinput></screen>
 
     <para>Shadow's stock configuration for the <command>useradd</command>
-    utility is not suitable for LFS systems.  Use the following commands to
-    change the default home directory for new users and prevent the creation of
-    mail spool files:</para>
+    utility has a few caveats that need some explanation. First, the default
+    action for the <command>useradd</command> utility is to create the user and
+    a group of the same name as the user. By default the user ID (UID) and
+    group ID (GID) numbers will begin with 1000. This means if you don't pass
+    parameters to <command>useradd</command>, each user will be a member of a
+    unique group on the system. If this behaviour is undesireable, you'll need
+    to pass the <parameter>-g</parameter> parameter to
+    <command>useradd</command>. The default parameters are stored in the
+    <filename>/etc/default/useradd</filename> file. You may need to modify two
+    parameters in this file to suit your particular needs.</para>
 
-<screen><userinput>useradd -D -b /home
-sed -i 's/yes/no/' /etc/default/useradd</userinput></screen>
+    <variablelist>
+      <title><filename>/etc/default/useradd</filename> Parameter Explanations</title>
 
+      <varlistentry>
+        <term><parameter>GROUP=1000</parameter></term>
+        <listitem>
+          <para>This parameter sets the beginning of the group numbers used in
+          the /etc/group file. You can modify it to anything you desire. Note
+          that <command>useradd</command> will never reuse a UID or GID. If the
+          number identified in this parameter is used, it will use the next
+          available number after this. Note also that if you don't have a group
+          1000 on your system the first time you use <command>useradd</command>
+          without the <parameter>-g</parameter> parameter, you'll get a message
+          displayed on the terminal that says:
+          <computeroutput>useradd: unknown GID 1000</computeroutput>. You may
+          disregard this message and group number 1000 will be used.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><parameter>CREATE_MAIL_SPOOL=yes</parameter></term>
+        <listitem>
+          <para>This parameter causes <command>useradd</command> to create a
+          mailbox file for the newly created user. <command>useradd</command>
+          will make the group ownership of this file to the
+          <systemitem class="groupname">mail</systemitem> group with 0660
+          permissions. If you would prefer that these mailbox files are not
+          created by <command>useradd</command>, issue the following
+          command:</para>
+
+<screen><userinput>sed -i 's/yes/no/' /etc/default/useradd</userinput></screen>
+        </listitem>
+      </varlistentry>
+
+    </variablelist>
+
+
   </sect2>
 
   <sect2 role="configuration">
@@ -191,7 +237,6 @@
 
     <segmentedlist>
       <segtitle>Installed programs</segtitle>
-      <segtitle>Installed libraries</segtitle>
 
       <seglistitem>
         <seg>chage, chfn, chgpasswd, chpasswd, chsh, expiry, faillog, gpasswd,
@@ -199,7 +244,6 @@
         lastlog, login, logoutd, newgrp, newusers, nologin, passwd, pwck,
         pwconv, pwunconv, sg (link to newgrp), su, useradd, userdel, usermod,
         vigr (link to vipw), and vipw</seg>
-        <seg>libshadow.{a,so}</seg>
       </seglistitem>
     </segmentedlist>
 
@@ -551,16 +595,6 @@
         </listitem>
       </varlistentry>
 
-      <varlistentry id="libshadow">
-        <term><filename class="libraryfile">libshadow</filename></term>
-        <listitem>
-          <para>Contains functions used by most programs in this package</para>
-          <indexterm zone="ch-system-shadow libshadow">
-            <primary sortas="c-libshadow">libshadow</primary>
-          </indexterm>
-        </listitem>
-      </varlistentry>
-
     </variablelist>
 
   </sect2>

Modified: trunk/BOOK/packages.ent
===================================================================
--- trunk/BOOK/packages.ent	2008-10-09 18:45:51 UTC (rev 8613)
+++ trunk/BOOK/packages.ent	2008-10-09 20:47:01 UTC (rev 8614)
@@ -453,15 +453,12 @@
 <!ENTITY sed-ch6-du "10 MB">
 <!ENTITY sed-ch6-sbu "0.2 SBU">
 
-<!ENTITY shadow-version "4.0.18.1">
-<!ENTITY shadow-size "1,481 KB">
-<!-- This site is dead. Use anduin instead.
-<!ENTITY shadow-url "ftp://ftp.pld.org.pl/software/shadow/shadow-&shadow-version;.tar.bz2">
--->
-<!ENTITY shadow-url "&anduin-sources;shadow-&shadow-version;.tar.bz2">
-<!ENTITY shadow-md5 "e7751d46ecf219c07ae0b028ab3335c6">
-<!ENTITY shadow-home " ">
-<!ENTITY shadow-ch6-du "20.7 MB">
+<!ENTITY shadow-version "4.1.2.1">
+<!ENTITY shadow-size "1,697 KB">
+<!ENTITY shadow-url "ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-&shadow-version;.tar.bz2">
+<!ENTITY shadow-md5 "c178e49c45495e296dabbe4ae01a0fbe">
+<!ENTITY shadow-home "http://pkg-shadow.alioth.debian.org/">
+<!ENTITY shadow-ch6-du "28 MB">
 <!ENTITY shadow-ch6-sbu "0.3 SBU">
 
 <!ENTITY sysklogd-version "1.5">

Modified: trunk/BOOK/patches.ent
===================================================================
--- trunk/BOOK/patches.ent	2008-10-09 18:45:51 UTC (rev 8613)
+++ trunk/BOOK/patches.ent	2008-10-09 20:47:01 UTC (rev 8614)
@@ -132,9 +132,9 @@
 <!ENTITY readline-fixes-patch-size "18 KB">
 
 
-<!ENTITY shadow-useradd-patch "shadow-&shadow-version;-useradd_fix-2.patch">
+<!-- <!ENTITY shadow-useradd-patch "shadow-&shadow-version;-useradd_fix-2.patch">
 <!ENTITY shadow-useradd-patch-md5 "5f35528f38d5432d5fa2dd79d04bdfdd">
-<!ENTITY shadow-useradd-patch-size "6.1 KB">
+<!ENTITY shadow-useradd-patch-size "6.1 KB"> -->
 
 
 <!ENTITY vim-fixes-patch "vim-&vim-version;-fixes-6.patch">




More information about the lfs-book mailing list