From owner-freebsd-isp Wed Aug 21 07:08:04 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA17719 for isp-outgoing; Wed, 21 Aug 1996 07:08:04 -0700 (PDT) Received: from irbs.irbs.com (irbs.com [199.182.75.129]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA17688 for ; Wed, 21 Aug 1996 07:08:00 -0700 (PDT) Received: (from jc@localhost) by irbs.irbs.com (8.7.5/8.6.6) id KAA10066; Wed, 21 Aug 1996 10:06:12 -0400 (EDT) From: John Capo Message-Id: <199608211406.KAA10066@irbs.irbs.com> Subject: Re: newbie isp question In-Reply-To: <199608202018.QAA13712@rk.ios.com> from Rashid Karimov at "Aug 20, 96 04:18:22 pm" To: rashid@rk.ios.com (Rashid Karimov) Date: Wed, 21 Aug 1996 10:06:11 -0400 (EDT) Cc: michael@memra.com, freebsd-isp@freebsd.org X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Rashid Karimov writes: > > > > On Tue, 20 Aug 1996, Swee-Chuan Khoo wrote: > > > > > 1) can freebsd machine take more than 65000 user? the uid will > > > ran out, right? > > > On my 2.2-SNAP: > > typedef u_int32_t uid_t; /* ****/types.h */ > > It means you can have 4 G users Not without a bit of work. Add a user to your password file with a uid >= 65536 and pwd_mkdb will whine about a bad entry. The uid value is limited to 16 bits for compatibility with older *nix password files and NIS. This can be changed/fixed if backwards compatibility is of no interest. These code fragments are from -stable. pwd_mkdb/pw_scan.c:94 fragment from pw_scan() if (id > USHRT_MAX) { warnx("%s > max gid value (%d)", p, USHRT_MAX); return (0); } pwd_mkdb/pwd_mkdb.c:385 fragment from scan() if (!pw_scan(line, pw)) { warnx("at line #%d", lcnt); fmt: errno = EFTYPE; /* XXX */ error(pname); } There may be some NIS issues that need to be addressed also. I didn't look at that code. John Capo jc@irbs.com IRBS Engineering FreeBSD Servers and Workstations (954) 792-9551 Unix/Internet Consulting - ISP Solutions