source: chapter06/changingowner.xml@ 90bfa70

Last change on this file since 90bfa70 was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-changingowner">
8<title>Changing ownership</title>
9<?dbhtml filename="changingowner.html"?>
10
11<para>Right now the <filename class="directory">/tools</filename> directory
12is owned by the user <emphasis>lfs</emphasis>, a user that exists only on your
13host system. Although you will probably want to delete the
14<filename class="directory">/tools</filename> directory once you have
15finished your LFS system, you may want to keep it around, for example to
16build more LFS systems. But if you keep the
17<filename class="directory">/tools</filename> directory as it is, you end up
18with files owned by a user ID without a corresponding account. This is
19dangerous because a user account created later on could get this same user ID
20and would suddenly own the <filename class="directory">/tools</filename>
21directory and all the files therein, thus exposing these files to possible
22malicious manipulation.</para>
23
24<para>To avoid this issue, you could add the <emphasis>lfs</emphasis> user to
25your new LFS system later on when creating the <filename>/etc/passwd</filename>
26file, taking care to assign it the same user and group IDs as on your host
27system. Alternatively, you can (and the book assumes you do) assign the
28contents of the <filename class="directory">/tools</filename> directory to
29user <emphasis>root</emphasis> by running the following command:</para>
30
31<screen><userinput>chown -R 0:0 /tools</userinput></screen>
32
33<para>The command uses <parameter>0:0</parameter> instead of <parameter>root:root</parameter>,
34because <userinput>chown</userinput> is unable to resolve the name
35<quote>root</quote> until the password file has been created.</para>
36
37</section>
Note: See TracBrowser for help on using the repository browser.