[eside-ghost] solo una preguntilla
Cymo
gcymoril en gmail.com
Mar Mayo 24 11:32:33 CEST 2005
> 1- Un usuario no root, puede tener un ID usuario por debajo de 500?
> Porque asigna asi los ids a los usuarios?
En Debian es a partir de 1000.
Supongo (puesto que no lo he probado muahahaha) que las respuestas
son: sí a lo de por debajo, y que si los asigna así es para distinguir
a los usuarios/grupos del sistema, como mail, ftp, etc.
En
http://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-users.html
explican que es una mera convención.
Yo que sepa, el único UID que está reservado es el 0, y es para root.
Sacado de [http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.2.2]:
The UID and GID numbers are divided into classes as follows:
0-99:
Globally allocated by the Debian project, the same on every Debian
system. These ids will appear in the passwd and group files of all
Debian systems, new ids in this range being added automatically as the
base-passwd package is updated.
Packages which need a single statically allocated uid or gid
should use one of these; their maintainers should ask the base-passwd
maintainer for ids.
100-999:
Dynamically allocated system users and groups. Packages which need
a user or group, but can have this user or group allocated dynamically
and differently on each system, should use adduser --system to create
the group and/or user. adduser will check for the existence of the
user or group, and if necessary choose an unused id based on the
ranges specified in adduser.conf.
1000-29999:
Dynamically allocated user accounts. By default adduser will
choose UIDs and GIDs for user accounts in this range, though
adduser.conf may be used to modify this behavior.
30000-59999:
Reserved.
60000-64999:
Globally allocated by the Debian project, but only created on
demand. The ids are allocated centrally and statically, but the actual
accounts are only created on users' systems on demand.
These ids are for packages which are obscure or which require many
statically-allocated ids. These packages should check for and create
the accounts in /etc/passwd or /etc/group (using adduser if it has
this facility) if necessary. Packages which are likely to require
further allocations should have a "hole" left after them in the
allocation, to give them room to grow.
65000-65533:
Reserved.
65534:
User nobody. The corresponding gid refers to the group nogroup.
65535:
(uid_t)(-1) == (gid_t)(-1) must not be used, because it is the
error return sentinel value.
Más información sobre la lista de distribución eside-ghost