From owner-freebsd-questions@FreeBSD.ORG Wed Jul 30 23:24:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0749A106567A for ; Wed, 30 Jul 2008 23:24:07 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.freebsd.org (Postfix) with ESMTP id AD7C88FC27 for ; Wed, 30 Jul 2008 23:24:05 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id m6UNO28e031150; Thu, 31 Jul 2008 01:24:02 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 115B2BA9C; Thu, 31 Jul 2008 01:24:02 +0200 (CEST) Date: Thu, 31 Jul 2008 01:24:02 +0200 From: Roland Smith To: Michael Christie Message-ID: <20080730232402.GA99013@slackbox.xs4all.nl> References: <4890DDE7.9090102@powerzone.net.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline In-Reply-To: <4890DDE7.9090102@powerzone.net.au> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Group Limits X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2008 23:24:07 -0000 --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 31, 2008 at 07:32:23AM +1000, Michael Christie wrote: > Hi there, >=20 > I am running webmin and virtualmin on freebsd 7.0, I have found when= =20 > i add a number of domains using virtualmin and restart apachie i get the= =20 > following error. > =20 > [alert] (22)Invalid argument: initgroups: unable to set groups for User= =20 > www and Group 80... Apachie will not start.. >=20 >=20 > it happens when the 'apache' or 'httpd' user is a member of too many > groups. By default, Virtualmin adds the user Apache runs as to each > domain's group, which eventually triggers this problem. See group(5): In older implementations, a group cannot have more than 200 members. = The maximum line length of /etc/group is 1024 characters. Longer lines wi= ll be skipped. This limitation disappeared in FreeBSD 3.0. > Can any one advise me how to expand the number of groups allow on > freebsd I think my default it is 16, I need to make it 50 to 100 The number 16 is from /usr/include/sys/syslimits.h. But my /etc/group has 37 groups without problems. In /usr/include/sys/_types.h and /usr/include/sys/stat.h gid_t is defined as __uint32_t, a 32 bits unsigned integer. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkiQ+BIACgkQEnfvsMMhpyWGigCeI9gVnv1iMWMzrF5sQ7/ONxR6 +UsAn301VMbxcpIuBLDyW8T62RCSFmGc =JuAj -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s--