Subversion Repositories svn LFS-FR

Rev

Blame | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;
]>

<sect1 id="ch-bootable-chowning">
  <?dbhtml filename="chowning.html"?>

  <title>Changing the Ownership Of The CLFS System</title>

  <para>Throughout the book, every package has been compiled and installed as
  the <systemitem class="username">clfs</systemitem> user. The final system
  should be owned by <systemitem class="username">root</systemitem>.</para>

  <important>

    <para>The commands in the remainder of this book must be performed while
    logged in as <systemitem class="username">root</systemitem>. Check that
    ${CLFS} is still set:</para>

    <screen><userinput>echo ${CLFS}</userinput></screen>

  </important>

  <para>Make <systemitem class="username">root</systemitem> the owner of the
  entire CLFS system.</para>

<screen><userinput>chown -Rv &uid-root;:&gid-root; ${CLFS}</userinput></screen>

  <para>The following files are to be owned by the group
  <systemitem class="username">utmp</systemitem> not by
  <systemitem class="username">root</systemitem>.</para>

<screen><userinput>chgrp -v &gid-utmp; ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen>

  <para>During the installation of Util-Linux-ng configure was instructed not
  change the ownership of certain programs. Correct that ownership now that we
  have sufficent privileges.</para>

<screen><userinput>chgrp -v &gid-tty; ${CLFS}/usr/bin/write
chmod g+s ${CLFS}/usr/bin/write</userinput></screen>

  <para>The following device nodes need to be created for the system to
  boot.</para>

<screen><userinput>mknod -m 0666 ${CLFS}/dev/null c 1 3
mknod -m 0600 ${CLFS}/dev/console c 5 1</userinput></screen>

</sect1>