source: BOOK/chroot/common/changingowner.xml@ aafb2fe

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since aafb2fe was 94e6142, checked in by Jim Gifford <clfs@…>, 19 years ago

r1167@server (orig r1165): chris | 2006-02-11 08:13:02 -0800
Added -v to commands in the rest of the book

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-chroot-changingowner">
9 <?dbhtml filename="changingowner.html"?>
10
11 <title>Changing Ownership</title>
12
[fa6e750]13 <para>Currently, the <filename class="directory">/tools</filename>
14 and <filename class="directory">/cross-tools</filename> directories
15 are owned by the user <emphasis>lfs</emphasis>, a user that
16 exists only on the host system. Although the <filename
17 class="directory">/tools</filename> and <filename
18 class="directory">/cross-tools</filename> directories can be deleted
19 once the LFS system has been finished, they can be retained to build
20 additional LFS systems. If the <filename class="directory">/tools</filename>
21 and <filename class="directory">/cross-tools</filename> directories are
22 kept as is, the files are owned by a user ID without a corresponding
23 account. This is dangerous because a user account created later could
24 get this same user ID and would own the <filename
[9c127a8]25 class="directory">/tools</filename> directory and all the files therein,
[fa6e750]26 thus exposing these files to possible malicious manipulation.</para>
[3f8be484]27
[fa6e750]28 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
29 href="../../boot/common/changingowner.xml"
[f15e0d6]30 xpointer="xpointer(//*[@os='c'])"/>
[3f8be484]31
[94e6142]32<screen><userinput>chown -Rv 0:0 /tools
33chown -Rv 0:0 /cross-tools</userinput></screen>
[3f8be484]34
[fa6e750]35 <para>The commands use <parameter>0:0</parameter> instead of
36 <parameter>root:root</parameter>, because <command>chown</command>
[9b65b70]37 is unable to resolve the name <quote>root</quote> until the
38 <filename>passwd</filename> file has been created.</para>
[3f8be484]39
40</sect1>
Note: See TracBrowser for help on using the repository browser.