Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22253 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2314 invoked by uid 1010); 8 Mar 2006 21:00:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2297 invoked from network); 8 Mar 2006 21:00:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2006 21:00:01 -0000 X-Host-Fingerprint: 64.233.162.192 zproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.162.192:55455] helo=zproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 4B/68-27106-0D54F044 for ; Wed, 08 Mar 2006 16:00:01 -0500 Received: by zproxy.gmail.com with SMTP id m7so318018nzf for ; Wed, 08 Mar 2006 12:59:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=k84nFNm3DMuHPeyIQ2RL4Yeie3hFNtUtFVqvZ7QERg0YbJ7Ff4Kg4jFgGEOHVPviRyodoRTlK8MeM7eB5ZXFuyLmJa6fSoBczBSkmXb0nUOpn34L9mdkcl7ZjIgQqk50dnk3g9iS3D0tjpKsGdsuDcSzTAt6OISbBy1mDa7NBVU= Received: by 10.35.113.12 with SMTP id q12mr1351936pym; Wed, 08 Mar 2006 12:59:57 -0800 (PST) Received: by 10.35.134.4 with HTTP; Wed, 8 Mar 2006 12:59:57 -0800 (PST) Message-ID: <8b6fdd1d0603081259u62306b82ob284b183f0ff3892@mail.gmail.com> Date: Wed, 8 Mar 2006 14:59:57 -0600 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_393_25208845.1141851597534" Subject: php5 reads /etc/group on start From: ckevinj@gmail.com (kjc) ------=_Part_393_25208845.1141851597534 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline What is it that php5.1.2 reads /etc/group on startup to setgroup? My Solaris 10 boxes use LDAP as a NIS replacement so that we don't have to manage individual group files on all the servers. When I start Apache without php I see this the dtrace dtruss script: log.dtruss-httpdcmd-nophp: 26471/1: read(0xE, "0\202\001\b\002\001\002d\202\001\001\004\034cn=3Dcau,ou=3Dgroup,ou=3Ddev .= .. log.dtruss-httpdcmd-nophp:26483/1: setgroups(0xA, 0x1001F20A0, 0x400) =3D 0 0 times ten, for the ten (A) groups that the webuser is a member of, thus the setgroups(0xA,. BUT... When I LoadModule libphp5 I get this instead: log.dtruss-httpdcmd: 25142/1: open("/etc/group\0", 0x2000, 0x1B6) =3D 15 0 log.dtruss-httpdcmd: 25142/1: setgroups(0x2, 0x1002CCFB0, 0x400) =3D 0 0 Which is a grand total of 3 (2), one from /etc/group and the other is what is actually associated with the LDAP user webuser but listed twice. So-- why does PHP manually go and read /etc/group-- and why? And how can I disable or fix that? HELP!! TIA. -Kevin ------=_Part_393_25208845.1141851597534--