source: chapter06/changingowner.xml@ fff7530

6.0
Last change on this file since fff7530 was 3c928f1, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Added a separate file for the strippingagain section.
Tags correcitions.

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

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