aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/createfiles.xml
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2022-05-02 15:36:03 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2022-05-02 15:36:03 +0800
commit14de4552bfc176646e1365a1bf85035486ced218 (patch)
tree5d7b6dc75862e470b6a4f716afe0d66a1d280a0b /chapter07/createfiles.xml
parentd77e98c7e85b2d0f955ca845af208a733d301bde (diff)
explain the usage of 65534
Diffstat (limited to 'chapter07/createfiles.xml')
-rw-r--r--chapter07/createfiles.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/chapter07/createfiles.xml b/chapter07/createfiles.xml
index 7df2acde6..ca148f966 100644
--- a/chapter07/createfiles.xml
+++ b/chapter07/createfiles.xml
@@ -169,6 +169,15 @@ EOF</userinput></screen>
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 (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
chapter.</para>