[d9bec84] | 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
|
---|
[586feb7] | 21 | $CLFS is still set:</para>
|
---|
[d9bec84] | 22 |
|
---|
[586feb7] | 23 | <screen><userinput>echo $CLFS</userinput></screen>
|
---|
[d9bec84] | 24 |
|
---|
| 25 | </important>
|
---|
| 26 |
|
---|
[3322dab] | 27 | <para>Make <systemitem class="username">root</systemitem> the owner of the
|
---|
| 28 | entire lfs system.</para>
|
---|
[d9bec84] | 29 |
|
---|
[586feb7] | 30 | <screen><userinput>chown -Rv root:root ${CLFS}</userinput></screen>
|
---|
[d9bec84] | 31 |
|
---|
[3322dab] | 32 | <para>The following files are not the be owned by
|
---|
| 33 | <systemitem class="username">root</systemitem>.</para>
|
---|
[d9bec84] | 34 |
|
---|
[586feb7] | 35 | <screen><userinput>chgrp -v utmp ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen>
|
---|
[d9bec84] | 36 |
|
---|
| 37 | <para>The following device nodes need to be created for the system to
|
---|
| 38 | boot.</para>
|
---|
| 39 |
|
---|
[586feb7] | 40 | <screen><userinput>mknod -m 0666 ${CLFS}/dev/null c 1 3
|
---|
| 41 | mknod -m 0600 ${CLFS}/dev/console c 5 1</userinput></screen>
|
---|
[d9bec84] | 42 |
|
---|
| 43 | <para>If you did not create the following rules in <xref linkend="ch-scripts-udev-rules"/>. You
|
---|
| 44 | need to create them now.</para>
|
---|
| 45 |
|
---|
[586feb7] | 46 | <screen><userinput>mknod -m 0666 ${CLFS}/lib/udev/devices/null c 1 3
|
---|
| 47 | mknod -m 0600 ${CLFS}/lib/udev/devices/console c 5 1</userinput></screen>
|
---|
[d9bec84] | 48 |
|
---|
| 49 | </sect1>
|
---|