Bonjour a tous,
lors d'une précédente réponse, quelqu'un avait eu la bonne idée de me
diriger vers la debian policy relative aux uids :
(http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.2.2)
d'apres ce que j'en comprends, les seules plages utilisables pour mes
besoins sont :
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.
j'ai donc du mal a caser 70.000 utilisateurs. mon idée est de partir a
60.000, j'ai verifié que la chose était possible (cf. 1) mais ma
verification est peut-etre naive. je suis preneur de tout conseil,
correction, retour d'experience.
cordialement,
mc
1: La verification
> cat maxuidt.c
#include <stdio.h>
#include <stdlib.h>
int main ( void ) {
uid_t x=0;
x = ~ x;
printf("%llu\n",( long long unsigned ) x);
printf("%llu\n",
(
( long long unsigned )
1 << ( 8 * sizeof(x) )
) - 1
);
return(0);
}
> cc -Wall maxuidt.c
> ./a.out
4294967295
4294967295
--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]