Changeset 7c30624


Ignore:
Timestamp:
08/09/2023 02:30:52 PM (10 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.0-rc1, 12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
30e0a7b
Parents:
91f9a17
git-author:
Xi Ruoyao <xry111@…> (08/09/2023 02:29:44 PM)
git-committer:
Xi Ruoyao <xry111@…> (08/09/2023 02:30:52 PM)
Message:

coreutils: Use groupadd/groupdel for creating/removing dummy group

They look better than "echo >>" and "sed -i". And I think an example
showing how to use groupadd/groupdel is good anyway. The format of
/etc/group is already shown in chapter 7.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/coreutils.xml

    r91f9a17 r7c30624  
    117117    user <systemitem class="username">tester</systemitem> a part of it:</para>
    118118
    119 <screen><userinput remap="test">echo "dummy:x:102:tester" &gt;&gt; /etc/group</userinput></screen>
     119<screen><userinput remap="test">groupadd -g 102 dummy -U tester</userinput></screen>
    120120
    121121    <para>Fix some of the permissions so that the non-&root; user can
     
    135135    <para>Remove the temporary group:</para>
    136136
    137 <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
     137<screen><userinput remap="test">groupdel dummy</userinput></screen>
     138
    138139    <para>Install the package:</para>
    139140
Note: See TracChangeset for help on using the changeset viewer.