GID 5 (for tty) is also special

This commit is contained in:
Xi Ruoyao 2022-05-02 16:02:10 +08:00
parent 0414633793
commit 7c862eac22
No known key found for this signature in database
GPG Key ID: D95E4716CCBB34DC

View File

@ -165,9 +165,14 @@ EOF</userinput></screen>
url="http://refspecs.linuxfoundation.org/lsb.shtml"/>) only recommends that, url="http://refspecs.linuxfoundation.org/lsb.shtml"/>) only recommends that,
besides the group <systemitem class="groupname">root</systemitem> with a besides the group <systemitem class="groupname">root</systemitem> with a
Group ID (GID) of 0, a group <systemitem class="groupname">bin</systemitem> 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 with a GID of 1 be present. The GID of 5 is widely used for
freely by the system administrator since well-written programs do not depend <systemitem class="groupname">tty</systemitem> group, and the number 5 is
on GID numbers, but rather use the group's name.</para> 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 <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 namespaces for unmapped users and groups (those exist on the NFS server