1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/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">clfs</systemitem> user. The final system |
---|
15 | should be owned by <systemitem class="username">root</systemitem>.</para> |
---|
16 | |
---|
17 | <important> |
---|
18 | |
---|
19 | <para>The commands on this page of the book must be performed while |
---|
20 | logged in as <systemitem class="username">root</systemitem>. Check that |
---|
21 | ${CLFS} is still set:</para> |
---|
22 | |
---|
23 | <screen><userinput>echo ${CLFS}</userinput></screen> |
---|
24 | |
---|
25 | </important> |
---|
26 | |
---|
27 | <para>Make <systemitem class="username">root</systemitem> the owner of the |
---|
28 | entire CLFS system:</para> |
---|
29 | |
---|
30 | <screen><userinput>chown -Rv root:root ${CLFS}/targetfs</userinput></screen> |
---|
31 | |
---|
32 | <para>The following files should not to belong to the |
---|
33 | <systemitem class="groupname">root</systemitem> group, they should belong |
---|
34 | to the <systemitem class="groupname">utmp</systemitem> group (group 13):</para> |
---|
35 | |
---|
36 | <screen><userinput>chgrp -v 13 ${CLFS}/targetfs/var/run/utmp ${CLFS}/targetfs/var/log/lastlog</userinput></screen> |
---|
37 | |
---|
38 | <para>The following device nodes need to be created for some systems to |
---|
39 | boot correctly:</para> |
---|
40 | |
---|
41 | <screen><userinput>mknod -m 0666 ${CLFS}/targetfs/dev/null c 1 3 |
---|
42 | mknod -m 0600 ${CLFS}/targetfs/dev/console c 5 1</userinput></screen> |
---|
43 | |
---|
44 | </sect1> |
---|