aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2022-05-04 20:22:53 -0500
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2022-05-04 20:22:53 -0500
commitf164a246c2843c4218e6fb497559c99bb8e557f2 (patch)
treeebaa90b4e925bf7203df9bb7c801b9048ab81fe2
parentd6cba09c7c65fe0a18af5e6811ec19db053f6037 (diff)
parent7c862eac22b81a8224a9b9c549bb2eebb3f77b7f (diff)
Merge branch 'trunk' of git.linuxfromscratch.org:lfs into trunk
-rw-r--r--chapter07/createfiles.xml28
1 files changed, 21 insertions, 7 deletions
diff --git a/chapter07/createfiles.xml b/chapter07/createfiles.xml
index 7df2acde6..eda30ed2e 100644
--- a/chapter07/createfiles.xml
+++ b/chapter07/createfiles.xml
@@ -116,8 +116,8 @@ mail:x:34:
kvm:x:61:
uuidd:x:80:
wheel:x:97:
-nogroup:x:65534:
-users:x:999:</literal>
+users:x:999:
+nogroup:x:65534:</literal>
EOF</userinput></screen>
<screen revision="systemd"><userinput>cat &gt; /etc/group &lt;&lt; "EOF"
@@ -153,8 +153,8 @@ systemd-coredump:x:79:
uuidd:x:80:
systemd-oom:x:81:
wheel:x:97:
-nogroup:x:65534:
-users:x:999:</literal>
+users:x:999:
+nogroup:x:65534:</literal>
EOF</userinput></screen>
<para>The created groups are not part of any standard&mdash;they are groups
@@ -165,9 +165,23 @@ EOF</userinput></screen>
url="http://refspecs.linuxfoundation.org/lsb.shtml"/>) only recommends that,
besides the group <systemitem class="groupname">root</systemitem> with a
Group ID (GID) of 0, a group <systemitem class="groupname">bin</systemitem>
- with a GID of 1 be present. All other group names and GIDs can be chosen
- freely by the system administrator since well-written programs do not depend
- on GID numbers, but rather use the group's name.</para>
+ with a GID of 1 be present. The GID of 5 is widely used for
+ <systemitem class="groupname">tty</systemitem> group, and the number 5 is
+ also used in <phrase revision="systemd">systemd</phrase>
+ <phrase revision="sysv"><filename>/etc/fstab</filename></phrase> for the
+ <systemitem class="filesystem">devpts</systemitem> filesystem.
+ All other group names and GIDs can be chosen freely by the system
+ administrator since well-written programs do not depend on GID numbers,
+ but rather use the group's name.</para>
+
+ <para>The ID 65534 is used by the kernel for NFS and separate user
+ namespaces for unmapped users and groups (those exist on the NFS server
+ or the parent user namespace, but <quote>do not exist</quote> on the local
+ machine or in the separate namespace). We assign
+ <systemitem class="username">nobody</systemitem> and
+ <systemitem class="groupname">nogroup</systemitem> for it to avoid an
+ unnamed ID. But other distros may treat this ID differently, so any
+ portable program should not depend on this assignment.</para>
<para>Some tests in <xref linkend="chapter-building-system"/> need a regular
user. We add this user here and delete this account at the end of that