r1032 - in trunk/BOOK: boot/common chroot/common

chris at linuxfromscratch.org chris at linuxfromscratch.org
Mon Jan 9 22:37:46 PST 2006


Author: chris
Date: 2006-01-09 23:37:46 -0700 (Mon, 09 Jan 2006)
New Revision: 1032

Modified:
   trunk/BOOK/boot/common/changingowner.xml
   trunk/BOOK/chroot/common/changingowner.xml
Log:
Changed the 'changing ownership' pages for boot and chroot because the each need different instructions

Modified: trunk/BOOK/boot/common/changingowner.xml
===================================================================
--- trunk/BOOK/boot/common/changingowner.xml	2006-01-09 16:15:48 UTC (rev 1031)
+++ trunk/BOOK/boot/common/changingowner.xml	2006-01-10 06:37:46 UTC (rev 1032)
@@ -20,8 +20,8 @@
   by the user <systemitem class="username">lfs</systemitem>,
   a user that exists only on the host system. For security reasons, the $LFS root directory and all of it subdirectories should be owned by <systemitem class="username">root</systemitem>. Change the ownership for $LFS and its subdirectories by running these commands:</para>
 
-<screen><userinput>chown 0:0 ${LFS}
-chown -R 0:0 $LFS/{bin,boot,dev,etc,home,lib,media,mnt,opt,proc,root,sbin,srv,sys,tmp,usr,var}</userinput></screen>
+<screen><userinput>chown root:root ${LFS}
+chown -R root:root $LFS/{bin,boot,dev,etc,home,lib,media,mnt,opt,proc,root,sbin,srv,sys,tmp,usr,var}</userinput></screen>
 
   <para os="c">The same issue also exists with <filename class="directory">/tools</filename> and <filename class="directory">/cross-tools</filename>. Although these directories can be deleted once the
   LFS system has been finished, they can be retained to build additional
@@ -38,17 +38,11 @@
   it the same user and group IDs as on the host system. Alternatively,
   assign the contents of the <filename class="directory">/tools</filename>
   and <filename class="directory">/cross-tools</filename> directories to user <systemitem class="username">root</systemitem> by running
-  the following command:</para>
+  the following commands:</para>
 
-<screen><userinput>chown -R 0:0 /tools
-chown -R 0:0 /cross-tools</userinput></screen>
+<screen><userinput>chown -R root:root /tools
+chown -R root:root /cross-tools</userinput></screen>
 
-<para os="e">This book assumes you ran these <command>chown</command> commands.</para>
+  <para os="e">This book assumes you ran these <command>chown</command> commands.</para>
 
-<!--  <para os="c">The command uses <parameter>0:0</parameter> instead of
-  <parameter>root:root</parameter>, because <command>chown</command>
-  is unable to resolve the name <quote>root</quote> until the password
-  file has been created. This book assumes you ran this
-  <command>chown</command> command.</para> -->
-
 </sect1>

Modified: trunk/BOOK/chroot/common/changingowner.xml
===================================================================
--- trunk/BOOK/chroot/common/changingowner.xml	2006-01-09 16:15:48 UTC (rev 1031)
+++ trunk/BOOK/chroot/common/changingowner.xml	2006-01-10 06:37:46 UTC (rev 1032)
@@ -10,18 +10,32 @@
 
   <title>Changing Ownership</title>
 
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-  href="../../boot/common/changingowner.xml"
-  xpointer="xpointer(//*[@os='a'])"/>
+    <para>Currently, the <filename class="directory">/tools</filename>
+    and <filename class="directory">/cross-tools</filename> directories
+    are owned by the user <emphasis>lfs</emphasis>, a user that
+    exists only on the host system. Although the <filename
+    class="directory">/tools</filename> and <filename
+    class="directory">/cross-tools</filename> directories can be deleted
+    once the LFS system has been finished, they can be retained to build
+    additional LFS systems. If the <filename class="directory">/tools</filename>
+    and <filename class="directory">/cross-tools</filename> directories are
+    kept as is, the files are owned by a user ID without a corresponding
+    account. This is dangerous because a user account created later could
+    get this same user ID and would own the <filename
+    lass="directory">/tools</filename> directory and all the files therein,
+    thus exposing these files to possible malicious manipulation.</para>
 
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-  href="../../boot/common/changingowner.xml"
-  xpointer="xpointer(//*[@os='b'])"/>
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../boot/common/changingowner.xml"
+    xpointer="xpointer(//*[@os='d'])"/>
 
-<screen><userinput>chown -R 0:0 /tools</userinput></screen>
+    <screen><userinput>chown -R 0:0 /tools
+    chown -R 0:0 /cross-tools</userinput></screen>
 
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-  href="../../boot/common/changingowner.xml"
-  xpointer="xpointer(//*[@os='c'])"/>
+    <para>The commands use <parameter>0:0</parameter> instead of
+    <parameter>root:root</parameter>, because <command>chown</command>
+    is unable to resolve the name <quote>root</quote> until the password
+    file has been created. This book assumes you ran these
+    <command>chown</command> commands.</para>
 
 </sect1>




More information about the cross-lfs mailing list