Last change
on this file since d445673c was a723063, checked in by Andrew Bradford <bradfa@…>, 14 years ago |
Moved chowning.xml to cleanup chapter, edited it
Moved bootable/common/chowning.xml to the cleanup chapter as that's a
more appropriate place for it. Chowning everything to root should only
happen to the ${CLFS}-final directory (our copy) so as to not disrupt
the ability to go back and compile more packages as clfs user.
Also edited chowning.xml to only operate on the ${CLFS}-final directory
and to update chgrp command to use group "13" rather than "utmp" since
utmp group may not be group 13 on the build machine.
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[a9e389d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[bd48e48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[a723063] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
[a9e389d] | 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-bootable-chowning">
|
---|
| 9 | <?dbhtml filename="chowning.html"?>
|
---|
| 10 |
|
---|
[a723063] | 11 | <title>Changing the Ownership of the CLFS System</title>
|
---|
[a9e389d] | 12 |
|
---|
| 13 | <para>Throughout the book, every package has been compiled and installed as
|
---|
[73b32c7] | 14 | the <systemitem class="username">clfs</systemitem> user. The final system
|
---|
[a9e389d] | 15 | should be owned by <systemitem class="username">root</systemitem>.</para>
|
---|
| 16 |
|
---|
| 17 | <important>
|
---|
| 18 |
|
---|
[a723063] | 19 | <para>The commands on this page of the book must be performed while
|
---|
[a9e389d] | 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
|
---|
[73b32c7] | 28 | entire CLFS system:</para>
|
---|
[a9e389d] | 29 |
|
---|
[a723063] | 30 | <screen><userinput>chown -Rv root:root ${CLFS}-final</userinput></screen>
|
---|
[a9e389d] | 31 |
|
---|
[a723063] | 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>
|
---|
[a9e389d] | 35 |
|
---|
[a723063] | 36 | <screen><userinput>chgrp -v 13 ${CLFS}-final/var/run/utmp ${CLFS}-final/var/log/lastlog</userinput></screen>
|
---|
[a9e389d] | 37 |
|
---|
| 38 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.