aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/changingowner.xml
diff options
context:
space:
mode:
authorMarc Heerdink <gimli@linuxfromscratch.org>2002-01-23 18:24:44 +0000
committerMarc Heerdink <gimli@linuxfromscratch.org>2002-01-23 18:24:44 +0000
commit062461b217f60eb64b5f43a2ffcad1af634d6682 (patch)
tree93fc35056bba94e2d7c00b50878a17e08047a9d4 /chapter06/changingowner.xml
parent93dba6aba6b5b53738a436ea6bbecfd8e4c9c46e (diff)
[Bug 149] Addition and Removal of files to resolve bug 149 (Install all software as an unprivileged user)
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1470 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/changingowner.xml')
-rw-r--r--chapter06/changingowner.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/chapter06/changingowner.xml b/chapter06/changingowner.xml
new file mode 100644
index 000000000..9a1592007
--- /dev/null
+++ b/chapter06/changingowner.xml
@@ -0,0 +1,19 @@
+<sect1 id="ch06-changingowner">
+<title>Changing ownership of the LFS partition</title>
+<?dbhtml filename="changingowner.html" dir="chapter06"?>
+
+<para>Now we're in chroot, it is a good time to change the ownership of
+all files and directories that were installed in chapter 5 back to root.
+Run the following commands to do so:</para>
+
+<para><screen><userinput>chown 0.0 / /proc &amp;&amp;
+chown -R 0.0 /bin /boot /dev /etc /home /lib /mnt /opt /root /sbin /tmp /usr /var</userinput></screen></para>
+
+<para>These commands will change the ownership of the root partition and
+the <filename>/proc</filename> directory to root, plus everything under
+the directories mentioned in the second line. In these commands, 0.0 is
+used instead of the usual root.root, because the username root can't be
+resolved because glibc is not yet installed.</para>
+
+</sect1>
+