Subversion Repositories svn LFS-FR


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"
 "" [
 <!ENTITY % general-entities SYSTEM "../../general.ent">

<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>


    <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>


  <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

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