From 8ef83047f979cb4addce1547008b3981359e3304 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Thu, 2 Feb 2006 21:03:09 +0000 Subject: Indenting chapter 6, part 3 git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7325 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/changingowner.xml | 55 +++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 27 deletions(-) (limited to 'chapter06/changingowner.xml') diff --git a/chapter06/changingowner.xml b/chapter06/changingowner.xml index 618fa40d8..83deca414 100644 --- a/chapter06/changingowner.xml +++ b/chapter06/changingowner.xml @@ -1,39 +1,40 @@ - %general-entities; ]> + -Changing Ownership - + + + Changing Ownership -Currently, the /tools -directory is owned by the user lfs, a user that -exists only on the host system. Although the /tools directory can be deleted once the -LFS system has been finished, it can be retained to build additional -LFS systems. 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. + Currently, the /tools directory + is owned by the user lfs, a user + that exists only on the host system. Although the /tools directory can be deleted once the LFS + system has been finished, it can be retained to build additional LFS systems. + 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, 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. Alternatively, assign -the contents of the /tools -directory to user root by running the following -command: + To avoid this issue, 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. Alternatively, assign the contents of + the /tools directory to user + root by running the following + command: chown -R 0:0 /tools -The command uses 0:0 instead of -root:root, because chown -is unable to resolve the name root until the -passwd file has been created. + The command uses 0:0 instead of + root:root, because chown + is unable to resolve the name root until the + passwd file has been created. - -- cgit v1.2.3-54-g00ecf