Index: BOOK/boot/common/changingowner.xml
===================================================================
--- BOOK/boot/common/changingowner.xml (revision a6054586a38de5ce07f96dd9bdb6deef8fa5b3d3)
+++ BOOK/boot/common/changingowner.xml (revision bf3dcb3f3f60f9ec3227399e51a6530b472d78ff)
@@ -11,18 +11,16 @@
Changing Ownership
-
- From now on, all commands in the rest of the book will be run as the root user.
-
-
- Currently, the /tools
+ Currently, the /tools
directory, /cross-tools directory, and
$LFS directory are owned
by the user lfs,
- 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 root. Change the ownership for $LFS and its subdirectories by running these commands:
+ 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
+ root. Change the ownership for $LFS and its subdirectories by running these commands:
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}
- The same issue also exists with /tools and /cross-tools. Although these directories can be deleted once the
+ The same issue also exists with /tools and /cross-tools. Although these directories can be deleted once the
LFS system has been finished, they can be retained to build additional
LFS systems. If the /tools and /cross-tools
@@ -33,5 +31,5 @@
thus exposing these files to possible malicious manipulation.
- To avoid this issue, add the To avoid this issue, add the lfs user to the new LFS system later when
creating the /etc/passwd file, taking care to assign
Index: BOOK/boot/common/devices.xml
===================================================================
--- BOOK/boot/common/devices.xml (revision a6054586a38de5ce07f96dd9bdb6deef8fa5b3d3)
+++ BOOK/boot/common/devices.xml (revision bf3dcb3f3f60f9ec3227399e51a6530b472d78ff)
@@ -18,5 +18,11 @@
Creating Initial Device Nodes
- When the kernel boots the system, it requires the presence
+
+ The commands in the remainder of the book should be run as
+ theroot user. Also,
+ double-check that $LFS is set as root.
+
+
+ When the kernel boots the system, it requires the presence
of a few device nodes, in particular the console and