From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c3a04c7a6dd39baa X-Google-Attributes: gidfee84,public From: kivinen@hut.fi (Tero Kivinen) Subject: Re: /etc/passwd - maximum length Date: 1996/02/14 Message-ID: #1/1 X-Deja-AN: 139298891 sender: kivinen@learnet.freenet.hut.fi references: <4f5d4f$6nh@rockall.cc.strath.ac.uk> organization: Koulutuskeskus Dipoli newsgroups: comp.unix.osf.osf1 In article <4f7th1$l3h@zk2nws.zko.dec.com> Paul Henderson writes: > The maximum # of users is currently 64,000. Nope, it is 65536 (limits.h defines UID_MAX as USHRT_MAX that is defined in machine/machlimits.h to be 65536U) (at least in 3.2). Only setuid and setreuid checks the uid limits, so if you binary patch kern_prot.o and change the "ldah at,65536(zero)" to "lda at, -1(zero)" at the start of those functions, you can use larger uids. Freenet Finland had to do that few weeks ago after we reached the uid 65536, and we have been running with patched kernel since that without any problems (there are some other limits in various systems (16 bits : ufs (advfs is ok), cpio, restore, 18 bits : tar)). -- kivinen@iki.fi Work : +358-0-451 4032 Magnus Enckellin kuja 9 K 19, 02610, Espoo Home : +358-0-502 1573