linux kernel 2.4, IA 32ではユーザはいくつまで作れたっけ?
[root@kit root]# cat /etc/redhat-release Red Hat Enterprise Linux ES release 3 (Taroon Update 1) [root@kit root]# uname -r 2.4.21-9.EL [root@kit root]# grep 'model name' /proc/cpuinfo model name : Intel(R) Celeron(R) CPU 2.00GHz [root@kit root]#
64k の上からスタート。 Powers of Ten 状態で。
[root@kit root]# useradd -M -u 100000 -g users foobar1 [root@kit root]# useradd -M -u 10000000 -g users foobar2 [root@kit root]# useradd -M -u 1000000000 -g users foobar3 [root@kit root]# useradd -M -u 100000000000 -g users foobar4 [root@kit root]# useradd -M -u 10000000000000 -g users foobar5 useradd: ユーザID 4294967295 が重複しています [root@kit root]# foobar1:x:100000:100::/home/foobar1:/bin/bash foobar2:x:10000000:100::/home/foobar2:/bin/bash foobar3:x:1000000000:100::/home/foobar3:/bin/bash foobar4:x:4294967295:100::/home/foobar4:/bin/bash
1 000 000 000 OK
100 000 000 000 NG (丸められた)
4 294 967 295 上限
ぱっと見でわからないので計算。
[dxy@kat dxy]$ bc bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. 1024*1024*1024*4 4294967296 [dxy@kat dxy]$
なので、4G個 (2^10 x 2^10 x 2^10 x 2^2 = 32 bit)が上限と。
Postfix, Courier-IMAP, OpenLDAP, OpenSSH, Apache などの
user land application 達はどこまで対応しているのだろうか。

Leave a comment