Changeset 5ff21a4


Ignore:
Timestamp:
01/14/2022 12:28:30 AM (2 years ago)
Author:
Douglas R. Reno <renodr@…>
Branches:
11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
aa95507, ade3efa
Parents:
194e133 (diff), 7fba075 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'trunk' of git.linuxfromscratch.org:lfs into trunk

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter07/cleanup.xml

    r194e133 r5ff21a4  
    131131tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz .</userinput></screen>
    132132
     133    <note>
     134      <para>
     135        If continuing to chapter 8, don't forget to reenter the chroot
     136        environment as explained in the <quote>Important</quote> box below.
     137      </para>
     138    </note>
     139
    133140  </sect2>
    134141
  • chapter08/shadow.xml

    r194e133 r5ff21a4  
    144144
    145145    <screen><userinput remap="install">make exec_prefix=/usr install
    146 make -C man install-man
    147 mkdir -p /etc/default
    148 useradd -D --gid 999</userinput></screen>
     146make -C man install-man</userinput></screen>
    149147
    150148  </sect2>
     
    175173<screen><userinput>grpconv</userinput></screen>
    176174
    177     <para>Shadow's stock configuration for the <command>useradd</command>
     175    <para>Shadow's default configuration for the <command>useradd</command>
    178176    utility has a few caveats that need some explanation. First, the default
    179177    action for the <command>useradd</command> utility is to create the user and
     
    182180    parameters to <command>useradd</command>, each user will be a member of a
    183181    unique group on the system. If this behavior is undesirable, you'll need
    184     to pass the <parameter>-g</parameter> parameter to
    185     <command>useradd</command>. The default parameters are stored in the
    186     <filename>/etc/default/useradd</filename> file. You may need to modify two
    187     parameters in this file to suit your particular needs.</para>
     182    to pass one of the <parameter>-g</parameter> or <parameter>-N</parameter>
     183    parameter to <command>useradd</command> or to change the setting of
     184    <parameter>USERGROUPS_ENAB</parameter> in
     185    <filename>/etc/login.defs</filename>. See <filename>useradd(8)</filename>
     186    for more information.</para>
     187
     188    <para>Second, to change the default parameters, the file
     189    <filename>/etc/default/useradd</filename> needs to be created and taylored
     190    to suit your particular needs. Create it with:</para>
     191
     192<screen><userinput>mkdir -p /etc/default
     193useradd -D --gid 999</userinput></screen>
    188194
    189195    <variablelist>
     
    191197
    192198      <varlistentry>
    193         <term><parameter>GROUP=1000</parameter></term>
     199        <term><parameter>GROUP=999</parameter></term>
    194200        <listitem>
    195201          <para>This parameter sets the beginning of the group numbers used in
    196           the /etc/group file. You can modify it to anything you desire. Note
    197           that <command>useradd</command> will never reuse a UID or GID. If the
    198           number identified in this parameter is used, it will use the next
    199           available number after this. Note also that if you don't have a group
    200           1000 on your system the first time you use <command>useradd</command>
    201           without the <parameter>-g</parameter> parameter, you'll get a message
    202           displayed on the terminal that says:
    203           <computeroutput>useradd: unknown GID 1000</computeroutput>. You may
    204           disregard this message and group number 1000 will be used.</para>
     202          the <filename>/etc/group</filename> file. The particular value 999
     203          comes from the <parameter>--gid</parameter> parameter above.  You can
     204          modify it to anything you desire.
     205
     206          Note that <command>useradd</command> will never reuse a UID or GID.
     207          If the number identified in this parameter is used, it will use the
     208          next available number. Note also that if you don't have a group with
     209          an ID equal to this number on your system the first time you use
     210          <command>useradd</command> without the <parameter>-g</parameter>
     211          parameter, you will get a message displayed on the terminal that
     212          says: <computeroutput>useradd: unknown GID 999</computeroutput>,
     213          although the account is correctly created. That is why we have
     214          created the group <systemitem class="groupname">users</systemitem>
     215          with this group ID in <xref linkend='ch-tools-createfiles'/>.</para>
     216
    205217        </listitem>
    206218      </varlistentry>
     
    216228          command:</para>
    217229
    218 <screen><userinput>sed -i 's/yes/no/' /etc/default/useradd</userinput></screen>
     230<screen><userinput>sed -i '/MAIL/s/yes/no/' /etc/default/useradd</userinput></screen>
    219231        </listitem>
    220232      </varlistentry>
    221233
    222234    </variablelist>
    223 
    224235
    225236  </sect2>
Note: See TracChangeset for help on using the changeset viewer.