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

Last change on this file since 60ea5ab was b251855, checked in by Chris Staub <chris@…>, 17 years ago

Fixed remaining reference to lfs user

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[d9bec84]1<?xml version="1.0" encoding="ISO-8859-1"?>
[c439b8a]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[d9bec84]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
[b251855]14 the <systemitem class="username">clfs</systemitem> user. The final system
[d9bec84]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
[65df7b1]21 ${CLFS} is still set:</para>
[d9bec84]22
[65df7b1]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
[1a09536]28 entire CLFS system.</para>
[d9bec84]29
[846eed7]30<screen><userinput>chown -Rv &uid-root;:&gid-root; ${CLFS}</userinput></screen>
[d9bec84]31
[846eed7]32 <para>The following files are to be owned by the group
33 <systemitem class="username">utmp</systemitem> not by
[3322dab]34 <systemitem class="username">root</systemitem>.</para>
[d9bec84]35
[846eed7]36<screen><userinput>chgrp -v &gid-utmp; ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen>
37
38 <para>During the installation of Util-Linux-ng configure was instructed not
39 change the ownership of certain programs. Correct that ownership now that we
40 have sufficent privileges.</para>
41
42<screen><userinput>chgrp -v &gid-tty; ${CLFS}/usr/bin/write
43chmod g+s ${CLFS}/usr/bin/write</userinput></screen>
[d9bec84]44
45 <para>The following device nodes need to be created for the system to
46 boot.</para>
47
[586feb7]48<screen><userinput>mknod -m 0666 ${CLFS}/dev/null c 1 3
49mknod -m 0600 ${CLFS}/dev/console c 5 1</userinput></screen>
[d9bec84]50
51</sect1>
Note: See TracBrowser for help on using the repository browser.