source: clfs-sysroot/BOOK/bootable/common/chowning.xml @ d9bec84

Last change on this file since d9bec84 was d9bec84, checked in by Jim Gifford <clfs@…>, 18 years ago

r3671@server (orig r1668): jciccone | 2006-05-28 07:11:26 -0700
Added information about changing the ownership of the system and creating the neccesary device nodes.

  • 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.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-bootable-chowning">
9  <?dbhtml filename="chowning.html"?>
10
11  <title>Changing the Ownership Of The CLFS System</title>
12
13  <para>Throughout the book, every package has been compiled and installed as
14  the <systemitem class="username">lfs</systemitem> user. The final system
15  should be owned by <systemitem class="username">root</systemitem>.</para>
16
17  <important>
18
19    <para>The commands in the remainder of this book must be performed while
20    logged in as <systemitem class="username">root</systemitem>. Check that
21    $LFS is still set:</para>
22
23    <screen><userinput>echo $LFS</userinput></screen>
24
25  </important>
26
27  <para>First, Change the <systemitem class="username">user</systemitem>:
28  <systemitem class="group">group</systemitem> on the entire lfs system.</para>
29
30<screen><userinput>chown -Rv root:root ${LFS}</userinput></screen>
31
32  <para>The following files require a <systemitem class="username">user</systemitem>
33  :<systemitem class="group">group</systemitem> combination other then
34  <systemitem class="username">root</systemitem>:<systemitem class="group">root
35  </systemitem>.</para>
36
37<screen><userinput>chgrp -v utmp ${LFS}/var/run/utmp ${LFS}/var/log/lastlog</userinput></screen>
38
39  <para>The following device nodes need to be created for the system to
40  boot.</para>
41
42<screen><userinput>mknod -m 0666 ${LFS}/dev/null c 1 3
43mknod -m 0600 ${LFS}/dev/console c 5 1</userinput></screen>
44
45  <para>If you did not create the following rules in <xref linkend="ch-scripts-udev-rules"/>. You
46  need to create them now.</para>
47
48<screen><userinput>mknod -m 0666 ${LFS}/lib/udev/devices/null c 1 3
49mknod -m 0600 ${LFS}/lib/udev/devices/console c 5 1</userinput></screen>
50
51</sect1>
Note: See TracBrowser for help on using the repository browser.