From d2c332bc21267f5e01cb545d3f01cae1dcacdae3 Mon Sep 17 00:00:00 2001 From: Archaic Date: Thu, 13 Apr 2006 18:45:33 +0000 Subject: Merged the udev_update branch to trunk. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7509 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/changingowner.xml | 46 +++++++++++++++++++++++++++++++++++++++++++++ chapter05/chapter05.xml | 1 + 2 files changed, 47 insertions(+) create mode 100644 chapter05/changingowner.xml (limited to 'chapter05') diff --git a/chapter05/changingowner.xml b/chapter05/changingowner.xml new file mode 100644 index 000000000..b80ebb1b4 --- /dev/null +++ b/chapter05/changingowner.xml @@ -0,0 +1,46 @@ + + + %general-entities; +]> + + + + + Changing Ownership + + + The commands in the remainder of this book must be performed while + logged in as user root and no + longer as user lfs. Also, double + check that $LFS is set in root's environment. + + + Currently, the /tools directory + is owned by the user lfs, a user + that exists only on the host system. If the /tools 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 + /tools directory and all the files + therein, thus exposing these files to possible malicious manipulation. + + To avoid this issue, you could add the lfs user to the new LFS system later when + creating the /etc/passwd file, taking care to assign it + the same user and group IDs as on the host system. Better yet, change the + ownership of the /tools directory to + user root by running the following + command: + +chown -R root:root /tools + + Although the /tools directory can + be deleted once the LFS system has been finished, it can be retained to build + additional LFS systems of the same book version. How best + to backup /tools is a matter of + personal preference and is left as an exercise for the reader. + + diff --git a/chapter05/chapter05.xml b/chapter05/chapter05.xml index 02739479f..df3d854bb 100644 --- a/chapter05/chapter05.xml +++ b/chapter05/chapter05.xml @@ -42,5 +42,6 @@ + -- cgit v1.2.3-54-g00ecf