Group identifier
In Unix-like systems, multiple users can be put into groups.[src] POSIX and conventional Unix file system permissions are organized into three classes, user, group, and others.[src] The use of groups allows additional abilities to be delegated in an organized fashion, such as access to disks, printers, and other peripherals.[src] This method, among others, also enables the superuser to delegate some administrative tasks to normal users, similar to the Administrators group on Microsoft Windows NT and its derivatives.[src] A group identifier, often abbreviated to GID, is a numeric value used to represent a specific group.[src] The range of values for a GID varies amongst different systems; at the very least, a GID can be between 0 and 32,767, with one restriction: the login group for the superuser must have GID 0.[src] This numeric value is used to refer to groups in the /etc/passwd and /etc/group files or their equivalents.[src] Shadow password files and Network Information Service also refer to numeric GIDs.[src] The group identifier is a necessary component of Unix file systems and processes.[src]
In Unix-like systems, multiple users can be put into groups.[src] POSIX and conventional Unix file system permissions are organized into three classes, user, group, and others.[src] The use of groups allows additional abilities to be delegated in an organized fashion, such as access to disks, printers, and other peripherals.[src] This method, among others, also enables the superuser to delegate some administrative tasks to normal users, similar to the Administrators group on Microsoft Windows NT and its derivatives.[src] A group identifier, often abbreviated to GID, is a numeric value used to represent a specific group.[src] The range of values for a GID varies amongst different systems; at the very least, a GID can be between 0 and 32,767, with one restriction: the login group for the superuser must have GID 0.[src] This numeric value is used to refer to groups in the /etc/passwd and /etc/group files or their equivalents.[src] Shadow password files and Network Information Service also refer to numeric GIDs.[src] The group identifier is a necessary component of Unix file systems and processes.[src] ===Effective group ID=== The effective GID ( egid ) of a process is used for file access checks and may also affect file creation, depending on the semantics of the specific kernel implementation in use and possibly the mount options used.[src] According to BSD Unix semantics, the group ownership given to a newly created file is unconditionally inherited from the group ownership of the directory in which it is created.[src] According to AT&T UNIX System V semantics (also adopted by Linux variants), a newly created file is normally given the group ownership specified by the egid of the process that creates the file.[src] Most filesystems implement a method to select whether BSD or AT&T semantics should be used regarding group ownership of a newly created file; BSD semantics are selected for specific directories when the S_ISGID (s-gid) permission is set.[src] ===Real group ID=== The real GID ( rgid ) identify the real group owner of the process.[src] ===Saved group ID=== The saved group ID is used when a program running with elevated privileges needs to do some unprivileged work temporarily; changing egid from a privileged value (typically 0 ) to some unprivileged value (anything other than the privileged value) causes the privileged value to be stored in sgid .[src] Later, a program's egid can be set back to the value stored in sgid , so that elevated privileges can be restored; an unprivileged process may set its egid to one of only three values: the value of rgid , the value of sgid , or the value of egid .[src] On FreeBSD, porters who need a GID for their package can pick a free one from the range 50 to 999 and then register this static allocation in ports/GIDs.[src] 65,534: The Linux kernel defaults to 2 16 −2 = 65,534 (which many Linux distributions map to the group name "nogroup") when a 32-bit GID does not fit into the return value of a 16-bit system call.[src] The value is also returned by idmapd if a group name in an incoming NFSv4 packet does not match any known group on the system.[src]
28 sentences · 28 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Group identifier." encyclopegia.org, 2026, https://encyclopegia.org/wiki/group-identifier. Accessed 01 December 2026.
Chicago
"Group identifier." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/group-identifier.
APA
encyclopegia.org. (2026). Group identifier. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/group-identifier
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON