Author: jim Date: 2005-05-27 10:51:09 -0600 (Fri, 27 May 2005) New Revision: 5452
Added: branches/cross-lfs/BOOK/reboot/common/changingowner.xml Modified: branches/cross-lfs/BOOK/general.ent branches/cross-lfs/BOOK/introduction/common/changelog.xml branches/cross-lfs/BOOK/reboot/ppc-chapter.xml branches/cross-lfs/BOOK/reboot/raq2-chapter.xml branches/cross-lfs/BOOK/reboot/sparc-chapter.xml branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml branches/cross-lfs/BOOK/reboot/x86-chapter.xml branches/cross-lfs/BOOK/reboot/x86_64-chapter.xml Log: Added ownership change Modified: branches/cross-lfs/BOOK/general.ent =================================================================== --- branches/cross-lfs/BOOK/general.ent 2005-05-27 07:18:45 UTC (rev 5451) +++ branches/cross-lfs/BOOK/general.ent 2005-05-27 16:51:09 UTC (rev 5452) @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<!ENTITY version "7.0-cross-lfs-20050526"> +<!ENTITY version "7.0-cross-lfs-20050527"> <!ENTITY version-x86 "&version;-x86"> <!ENTITY version-ppc "&version;-PowerPC"> <!ENTITY version-sparc "&version;-Sparc"> <!ENTITY version-sparc64 "&version;-Sparc64"> <!ENTITY version-raq2 "&version;-RaQ2"> -<!ENTITY releasedate "May 26, 2005"> +<!ENTITY releasedate "May 27, 2005"> <!ENTITY milestone "7.0"> <!ENTITY lfs-root "http://www.linuxfromscratch.org/"> Modified: branches/cross-lfs/BOOK/introduction/common/changelog.xml =================================================================== --- branches/cross-lfs/BOOK/introduction/common/changelog.xml 2005-05-27 07:18:45 UTC (rev 5451) +++ branches/cross-lfs/BOOK/introduction/common/changelog.xml 2005-05-27 16:51:09 UTC (rev 5452) @@ -94,6 +94,14 @@ --> <itemizedlist> +<listitem><para>May 27, 2005 [jim]</para> +<itemizedlist> +<listitem><para>Adding ownership change to prevent issues during reboot.</para></listitem> +</itemizedlist> +</listitem> +</itemizedlist> + +<itemizedlist> <listitem><para>May 26, 2005 [jim]</para> <itemizedlist> <listitem><para>Adding necessary changes to the reboot section.</para></listitem> Added: branches/cross-lfs/BOOK/reboot/common/changingowner.xml =================================================================== --- branches/cross-lfs/BOOK/reboot/common/changingowner.xml 2005-05-27 07:18:45 UTC (rev 5451) +++ branches/cross-lfs/BOOK/reboot/common/changingowner.xml 2005-05-27 16:51:09 UTC (rev 5452) @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ + <!ENTITY % general-entities SYSTEM "../../general.ent"> + %general-entities; +]> +<sect1 id="ch-reboot-changingowner"> +<title>Changing Ownership</title> +<?dbhtml filename="changingowner.html"?> + +<para>Currently, the <filename class="directory">/tools</filename> +directory is owned by the user <emphasis>lfs</emphasis>, a user that +exists only on the host system. Although the <filename +class="directory">/tools</filename> directory can be deleted once the +LFS system has been finished, it can be retained to build additional +LFS systems. If the <filename class="directory">/tools</filename> +directory is 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 +class="directory">/tools</filename> directory and all the files +therein, thus exposing these files to possible malicious +manipulation.</para> + +<para>To avoid this issue, add the <emphasis>lfs</emphasis> user to +the new LFS system later when creating the +<filename>/etc/passwd</filename> file, taking care to assign it the +same user and group IDs as on the host system. Alternatively, assign +the contents of the <filename class="directory">/tools</filename> +directory to user <emphasis>root</emphasis> by running the following +command:</para> + +<screen><userinput>chown -R 0:0 /tools +chown -R 0:0 ${LFS}</userinput></screen> + +<para>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: branches/cross-lfs/BOOK/reboot/ppc-chapter.xml =================================================================== --- branches/cross-lfs/BOOK/reboot/ppc-chapter.xml 2005-05-27 07:18:45 UTC (rev 5451) +++ branches/cross-lfs/BOOK/reboot/ppc-chapter.xml 2005-05-27 16:51:09 UTC (rev 5452) @@ -23,5 +23,6 @@ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bootscripts.xml"/> +<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/changingowner.html"/> </chapter> Modified: branches/cross-lfs/BOOK/reboot/raq2-chapter.xml =================================================================== --- branches/cross-lfs/BOOK/reboot/raq2-chapter.xml 2005-05-27 07:18:45 UTC (rev 5451) +++ branches/cross-lfs/BOOK/reboot/raq2-chapter.xml 2005-05-27 16:51:09 UTC (rev 5452) @@ -24,5 +24,6 @@ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bootscripts.xml"/> +<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/changingowner.html"/> </chapter> Modified: branches/cross-lfs/BOOK/reboot/sparc-chapter.xml =================================================================== --- branches/cross-lfs/BOOK/reboot/sparc-chapter.xml 2005-05-27 07:18:45 UTC (rev 5451) +++ branches/cross-lfs/BOOK/reboot/sparc-chapter.xml 2005-05-27 16:51:09 UTC (rev 5452) @@ -23,5 +23,6 @@ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bootscripts.xml"/> +<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/changingowner.html"/> </chapter> Modified: branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml =================================================================== --- branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml 2005-05-27 07:18:45 UTC (rev 5451) +++ branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml 2005-05-27 16:51:09 UTC (rev 5452) @@ -23,5 +23,6 @@ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bootscripts.xml"/> +<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/changingowner.html"/> </chapter> Modified: branches/cross-lfs/BOOK/reboot/x86-chapter.xml =================================================================== --- branches/cross-lfs/BOOK/reboot/x86-chapter.xml 2005-05-27 07:18:45 UTC (rev 5451) +++ branches/cross-lfs/BOOK/reboot/x86-chapter.xml 2005-05-27 16:51:09 UTC (rev 5452) @@ -24,5 +24,6 @@ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bootscripts.xml"/> +<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/changingowner.html"/> </chapter> Modified: branches/cross-lfs/BOOK/reboot/x86_64-chapter.xml =================================================================== --- branches/cross-lfs/BOOK/reboot/x86_64-chapter.xml 2005-05-27 07:18:45 UTC (rev 5451) +++ branches/cross-lfs/BOOK/reboot/x86_64-chapter.xml 2005-05-27 16:51:09 UTC (rev 5452) @@ -24,5 +24,6 @@ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bootscripts.xml"/> +<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/changingowner.html"/> </chapter> -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
