Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Group identifier
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Conventions == === Type === Originally, a signed 16-bit integer was used. Since the sign was not necessary β negative numbers do not make valid group IDs β an unsigned integer is now used instead, allowing group IDs between 0 and 65,535. Modern operating systems usually use unsigned 32-bit integers, which allow for group IDs between 0 and 4,294,967,295. === Reserved ranges === Many Linux systems reserve the GID number range 0 to 99 for statically allocated groups, and either 100β499 or 100β999 for groups dynamically allocated by the system in post-installation scripts. These ranges are often specified in <code>/etc/login.defs</code>, for <code>useradd</code>, <code>groupadd</code> and similar tools. 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 [http://svnweb.freebsd.org/ports/head/GIDs?view=co ports/GIDs].<ref>[http://www.freebsd.org/doc/en/books/porters-handbook/ FreeBSD Porter's Handbook], [http://www.freebsd.org/doc/en/books/porters-handbook/users-and-groups.html Section 6.26: Adding Users and Groups]</ref> === Special values === * 0: The [[superuser]] normally has a GID of zero (0). * β1: The value <code>(gid_t) -1</code> is reserved by POSIX to identify an omitted argument.<ref>{{Cite web|title=chown|url=https://pubs.opengroup.org/onlinepubs/009695399/functions/chown.html|access-date=2021-12-06|website=pubs.opengroup.org}}</ref> * 65,534: The Linux kernel defaults to 2<sup>16</sup>β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.<ref>{{Cite web|title=Namespaces in operation, part 5: User namespaces [LWN.net]|url=https://lwn.net/Articles/532593/|access-date=2021-12-06|website=lwn.net}}</ref> 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.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)