Annvix:Documentation/Dev/Building/UID GID Map
|
This page contains content from the old Annvix.org wiki and has been moved here to preserve content. These pages have been retained for historical and nostalgic purposes only. |
Developer's Reference: Building Annvix: UID/GID Map
Unlike Mandriva, Annvix uses static uid/gid mappings for system accounts. This is a simple and convenient way to keep things similar across multiple systems. With Mandriva, the order of installed packages directly impacts what uid/gid numbers are assigned to system users; in our opinion this is an incorrect approach to handling system accounts.
However, unlike older distributions that had passwd and group files filled with unused system accounts (and because this also presents a security risk), user accounts are still added only when the package is installed, but developers assign a static uid/gid to the created account in the spec file. If you are developing a package for Annvix and require a static uid/gid, consult this listing for free uid/gid numbers and send a request to the dev mailing list indicating your intention to assign a static uid/gid pair to your package. This will prevent packages from trying to use the same usernames or uid/gid pairs.
As a general rule of thumb, you can expect the next free uid/gid pair according to the following conventions:
- 0-199 - main system accounts, mainline package uid/gid pairs
- 200-399 - ports package uid/gid pairs
- 400-499 - reserved for now
- 500+ - user accounts
Please see the Spec Files page to see how to use the modified macros to assign a static uid/gid.
| UID/GID | User Name | RPM Package |
| MAIN SYSTEM ACCOUNTS | ||
| 0/0 | root | setup |
| 1/1 | bin | setup |
| 2/2 | daemon | setup |
| /3 | sys | setup |
| 3/4 | adm | setup |
| /5 | tty | setup |
| /6 | disk | setup |
| 4/7 | lp | setup |
| 5/0 | sync | setup |
| 6/0 | shutdown | setup |
| 7/0 | halt | setup |
| /8 | mem | setup |
| /9 | kmem | setup |
| /10 | wheel | setup |
| /11 | admin | setup |
| 8/12 | setup | |
| 9/13 | news | setup |
| /14 | cron | setup |
| 11/0 | operator | setup |
| /15 | man | setup |
| /16 | xgrp | XFree86-xfs |
| /17 | slocate | slocate |
| /18 | ctools | setup |
| /19 | floppy | setup |
| /20 | usb | setup |
| /22 | cdrom | setup |
| /23 | cdwriter | setup |
| /24 | utmp | setup |
| /25 | video | setup |
| /26 | utempter | libutempter0 |
| 67/67 | logger | setup |
| 68/68 | rpm | rpm |
| 70/70 | xfs | XFree86-xfs |
| 71/71 | sshd | openssh-server |
| 72/72 | rpc | portmap |
| 73/73 | rpcuser | nfs-utils-clients |
| 74/74 | apache | apache-conf/apache2-common |
| 75/75 | postgres | postgresql-server |
| 76/76 | ldap | openldap-servers |
| 77/77 | snort | snort |
| 78/78 | postfix | postfix |
| /79 | postdrop | postfix |
| 80/80 | named | bind |
| 81/81 | ftp | pure-ftpd |
| 82/82 | mysql | MySQL-common |
| 83/83 | nscd | glibc |
| 84/84 | klogd | sysklogd |
| 85/85 | syslogd | sysklogd |
| 86/86 | squid | squid |
| 87/87 | ntp | ntp |
| 88/88 | pdns | pdns |
| 89/89 | dhcp | dhcp |
| /90 | sasl | libsasl2-plug-sasldb |
| 91/91 | clamav | clamav |
| 92/92 | svn | subversion-server |
| 93/93 | dovecot | dovecot |
| 94/94 | openvpn | openvpn |
| /100 | users | setup |
| /101 | machines | samba-server |
| PORTS PACKAGE ACCOUNTS | ||
| 200 | nullmail | nullmailer |
| 201 | qmaild | qmail |
| /201 | qmail | qmail |
| 202 | qmailp | qmail |
| 203 | qmailq | qmail |
| 204 | qmailr | qmail |
| 205 | qmails | qmail |
| 206 | alias | qmail |
| 207 | tftpd | tftp |
| 208 | lighttpd | lighttpd |
| 209 | ntop | ntop |
| RESERVED ACCOUNTS | ||
| 400/400 | rsbadmin | setup |
| 401/401 | rsbdata | setup |
| 402/402 | rsbtpmgr | setup |
| 403/403 | builder | annvix-ports |
| USER ACCOUNTS | ||
| /65533 | nobody | lsb |
| 65534/65534 | nobody/nogroup | setup |