Ignore:
Timestamp:
01/04/2022 04:53:09 PM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
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:
e7f0fa1
Parents:
7f13657d
Message:

Reword explanation of GROUP parameter in /etc/default/useradd

Tell that 999 comes from the --gid parameter, and that we already have
a group "users" with this gid to prevent messages when first using useradd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/shadow.xml

    r7f13657d r2b3f5219  
    189189    <filename>/etc/default/useradd</filename> needs to be created and taylored
    190190    to suit your particular needs. Create it with:</para>
     191
    191192<screen><userinput>mkdir -p /etc/default
    192193useradd -D --gid 999</userinput></screen>
     
    199200        <listitem>
    200201          <para>This parameter sets the beginning of the group numbers used in
    201           the /etc/group file. You can modify it to anything you desire. Note
    202           that <command>useradd</command> will never reuse a UID or GID. If the
     202          the <filename>/etc/group</filename> file. The particular value 999
     203          comes from the <parameter>--gid</parameter> parameter above.
     204          You can modify it to anything you desire. Note that
     205          <command>useradd</command> will never reuse a UID or GID. If the
    203206          number identified in this parameter is used, it will use the next
    204           available number after this. Note also that if you don't have a group
    205           1000 on your system the first time you use <command>useradd</command>
     207          available number after this. Note also that if you don't have a
     208          group with an ID equal to this number on your system the first
     209          time you use <command>useradd</command>
    206210          without the <parameter>-g</parameter> parameter, you'll get a message
    207211          displayed on the terminal that says:
    208           <computeroutput>useradd: unknown GID 1000</computeroutput>. You may
    209           disregard this message and group number 1000 will be used.</para>
     212          <computeroutput>useradd: unknown GID 999</computeroutput>, although
     213          the account is correctly created. That is
     214          why we have earlier created the group <parameter>users</parameter>
     215          with this group ID.</para>
    210216        </listitem>
    211217      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.