词条 | User identifier |
释义 |
Unix-like operating systems identify a user by a value called a user identifier, often abbreviated to user ID or UID. The UID, along with the group identifier (GID) and other access control criteria, is used to determine which system resources a user can access. The password file maps textual user names to UIDs. UIDs are stored in the inodes of the Unix file system, running processes, tar archives, and the now-obsolete Network Information Service. In POSIX-compliant environments, the command-line command Process attributesThe POSIX standard introduced three different UID fields into the process descriptor table, to allow privileged processes to take on different roles dynamically: Effective user IDThe effective UID ( File system user IDLinux also has a file system user ID ( The intent of Saved user IDThe saved user ID ( Real user IDThe real UID ( ConventionsTypePOSIX requires the UID to be an integer type. Most Unix-like operating systems represent the UID as an unsigned integer. The size of UID values varies amongst different systems; some UNIX OS's{{which|date=June 2014}} used 15-bit values, allowing values up to 32767{{citation needed|reason=SunOS-3.x and SunOS-4.x used -2 as the uid nobody that maps to 65534.|date=June 2015}}, while others such as Linux (before version 2.4) supported 16-bit UIDs, making 65536 unique IDs possible. The majority of modern Unix-like systems (e.g., Solaris-2.0 in 1990, Linux 2.4 in 2001) have switched to 32-bit UIDs, allowing 4,294,967,296 (232) unique IDs. Reserved rangesThe Linux Standard Base Core Specification specifies that UID values in the range 0 to 99 should be statically allocated by the system, and shall not be created by applications, while UIDs from 100 to 499 should be reserved for dynamic allocation by system administrators and post install scripts.[4] On FreeBSD, porters who need a UID for their package can pick a free one from the range 50 to 999 and then register the static allocation.[5][6] Some POSIX systems allocate UIDs for new users starting from 500 (OS X, Red Hat Enterprise Linux till version 6), others start at 1000 (Red Hat Enterprise Linux since version 7,[7] openSUSE, Debian[8]). On many Linux systems, these ranges are specified in Central UID allocations in enterprise networks (e.g., via LDAP and NFS servers) may limit themselves to using only UID numbers well above 1000, to avoid potential conflicts with UIDs locally allocated on client computers. NFSv4 can help avoid numeric identifier collisions, by identifying users (and groups) in protocol packets using "user@domain" names rather than integer numbers, at the expense of additional translation steps. Special values
See also
References1. ^{{man|1|chmod|Solaris}} {{DEFAULTSORT:User Identifier}}2. ^1 Kerrisk, Michael. The Linux Programming Interface. No Starch Press, 2010, p. 171. 3. ^{{cite web|url=http://www.cs.berkeley.edu/~daw/papers/setuid-usenix02.pdf |format=PDF |title=Setuid Demystified |website=Cs.berkeley.edu |accessdate=2016-09-24}} 4. ^{{cite web|url=https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/uidrange.html |title=9.3. UID Ranges |website=Refspecs.linuxfoundation.org |date= |accessdate=2016-09-24}} 5. ^{{cite web|author= |url=http://www.freebsd.org/doc/en/books/porters-handbook/ |title=FreeBSD Porter's Handbook |website=Freebsd.org |date= |accessdate=2016-09-24}} 6. ^http://www.freebsd.org/doc/en/books/porters-handbook/users-and-groups.html 7. ^{{cite web|author= |url=https://www.certdepot.net/rhel7-system-changes/ |title=RHEL7 System changes |website=Certdepot.net |date=2016-01-17 |accessdate=2017-03-22}} 8. ^{{cite web|url=https://www.debian.org/doc/debian-policy/ch-opersys.html |title=Debian Policy Manual - The Operating System |website=Debian.org |date=2016-03-30 |accessdate=2016-09-24}} 9. ^{{cite web|url=http://pubs.opengroup.org/onlinepubs/009695399/functions/getpwuid.html |title=Getpwuid |website=Pubs.opengroup.org |date= |accessdate=2016-09-24}} 10. ^{{cite web|url=http://pubs.opengroup.org/onlinepubs/009695399/functions/chown.html |title=Chown |website=Pubs.opengroup.org |date= |accessdate=2016-09-24}} 11. ^{{cite web|url=http://gnats.netbsd.org/6594 |title=NetBSD Problem Report #6594: the default "nobody" credentials (32767:9999) do not match mountd's default (-2:-2) |website=Gnats.netbsd.org |date= |accessdate=2016-09-24}} 12. ^{{cite web|url=https://lwn.net/Articles/532593/ |title=Namespaces in operation, part 5: User namespaces |website=Lwn.net |date= |accessdate=2016-09-24}} 2 : Unix|Unix file system technology |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。