Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/skel.xml

    r3f2db3a6 r45ab6c7  
    99  <?dbhtml filename="skel.html"?>
    1010
     11  <sect1info>
     12    <date>$Date$</date>
     13  </sect1info>
    1114
    1215  <title>Configuring for Adding Users</title>
     
    130133<screen role="root"><userinput>useradd -m <replaceable>&lt;newuser&gt;</replaceable></userinput></screen>
    131134
    132   <para>
    133     If you are sharing a <filename class="directory">/home</filename>
    134     or <filename class="directory">/usr/src</filename> with another
    135     Linux distro (for example, the host distro used for building LFS), you
    136     can create a user with the same UID (and, same primary group GID) to
    137     keep the file ownership consistent across the systems.  First, on
    138     <emphasis>the other distro</emphasis>, get the UID of the user and the
    139     GID of the user's primary group:
    140   </para>
    141 
    142 <screen role="nodump"><userinput>getent passwd <replaceable>&lt;username&gt;</replaceable> | cut -d ':' -f 3,4</userinput></screen>
    143 
    144   <para>
    145     The command should output the UID and GID, separated by a colon.  Now
    146     on the BLFS system, create the primary group and the user:
    147   </para>
    148 
    149 <screen role="root"><userinput>groupadd -g <replaceable>&lt;GID&gt;</replaceable> <replaceable>&lt;username&gt;</replaceable> &amp;&amp;
    150 useradd -u <replaceable>&lt;UID&gt;</replaceable> -g <replaceable>&lt;username&gt;</replaceable> <replaceable>&lt;username&gt;</replaceable></userinput></screen>
    151 
    152135</sect1>
Note: See TracChangeset for help on using the changeset viewer.