From: kivinen@hut.fi (Tero Kivinen)
Subject: Re: /etc/passwd - maximum length
Date: 1996/02/14 [thread overview]
Message-ID: <w53ybq6x08t.fsf@learnet.freenet.hut.fi> (raw)
In-Reply-To: 4f5d4f$6nh@rockall.cc.strath.ac.uk
In article <4f7th1$l3h@zk2nws.zko.dec.com> Paul Henderson <pgh> 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
prev parent reply other threads:[~1996-02-14 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4f5d4f$6nh@rockall.cc.strath.ac.uk>
1996-02-05 5:00 ` /etc/passwd - maximum length Mike Iglesias
1996-02-06 5:00 ` Jamie Cash
1996-02-06 5:00 ` Paul Henderson
1996-02-15 5:00 ` H. Todd Chapman
1996-02-14 5:00 ` Tero Kivinen [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox