From owner-freebsd-current Mon Dec 16 21:59:46 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA00943 for current-outgoing; Mon, 16 Dec 1996 21:59:46 -0800 (PST) Received: from skynet.ctr.columbia.edu (skynet.ctr.columbia.edu [128.59.64.70]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id VAA00936 for ; Mon, 16 Dec 1996 21:59:41 -0800 (PST) Received: (from wpaul@localhost) by skynet.ctr.columbia.edu (8.6.12/8.6.9) id AAA01510; Tue, 17 Dec 1996 00:57:49 -0500 From: Bill Paul Message-Id: <199612170557.AAA01510@skynet.ctr.columbia.edu> Subject: Re: group(5) limits To: wosch@cs.tu-berlin.de (Wolfram Schneider) Date: Tue, 17 Dec 1996 00:57:48 -0500 (EST) Cc: current@freebsd.org In-Reply-To: <199612170124.CAA02231@campa.panke.de> from "Wolfram Schneider" at Dec 17, 96 02:24:34 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Of all the gin joints in all the towns in all the world, Wolfram Schneider had to walk into mine and say: > The current limit is 200 members per group or maximum 1024 character per > line. I changed getgrent(3) to use dynamic allocated buffers > instead static buffers. No member or line length limit anymore - > now 500 members or 5000 members are possible. > > For security group lines longer than 256K will be ignored. > 256K should be enough for ~50000 users. While removing the static membership limit of 200 is probably okay, NIS v2 is permanently saddled with a record limit of 1024 bytes. The yp_mkdb(8) utility enforces this. The limit is part of the yp.x protocol, consequently to change it would break compatibility with all other NIS implementations. This means these changes would be fine for local /etc/group files, but you'd still be stuck with a 1024 byte line limit if you choose to use NIS. NIS+ is a different story; I don't think the protocol definition imposes any limit on the size of an entry value buffer. -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager, Master of Unix-Fu Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= "It is not I who am crazy; it is I who am mad!" - Ren Hoek, "Space Madness" =============================================================================