mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 13:37:39 +00:00
3f12743405
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1864 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
25 lines
1.0 KiB
XML
25 lines
1.0 KiB
XML
<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 &&
|
|
chown -R 0.0 /{bin,boot,dev,etc,home,lib,mnt,opt,root,sbin,tmp,usr,var}</userinput></screen></para>
|
|
|
|
<para>Depending on the filesystem you created on the LFS partition, you may
|
|
have a /lost+found directory. If so, run:</para>
|
|
|
|
<para><screen><userinput>chown 0.0 /lost+found</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>
|
|
|