From 7c862eac22b81a8224a9b9c549bb2eebb3f77b7f Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 2 May 2022 16:02:10 +0800 Subject: GID 5 (for tty) is also special --- chapter07/createfiles.xml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/chapter07/createfiles.xml b/chapter07/createfiles.xml index 71cb39c1f..eda30ed2e 100644 --- a/chapter07/createfiles.xml +++ b/chapter07/createfiles.xml @@ -165,9 +165,14 @@ EOF url="http://refspecs.linuxfoundation.org/lsb.shtml"/>) only recommends that, besides the group root with a Group ID (GID) of 0, a group bin - 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. + with a GID of 1 be present. The GID of 5 is widely used for + tty group, and the number 5 is + also used in systemd + /etc/fstab for the + devpts 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. 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 -- cgit v1.2.3-54-g00ecf