Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CDB019818 for ; Tue, 12 Apr 2016 12:57:21 +0000 (UTC) Received: (qmail 32993 invoked by uid 500); 12 Apr 2016 12:57:21 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 32953 invoked by uid 500); 12 Apr 2016 12:57:21 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 32943 invoked by uid 99); 12 Apr 2016 12:57:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Apr 2016 12:57:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 16514C0224 for ; Tue, 12 Apr 2016 12:57:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id GJp-f0qsKIsS for ; Tue, 12 Apr 2016 12:57:18 +0000 (UTC) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id AD9C95F232 for ; Tue, 12 Apr 2016 12:57:17 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id l6so5121972wml.3 for ; Tue, 12 Apr 2016 05:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=oS+bBbsmd838Qwh5c6w1uptJLX3c+kxwiReiO6SZDMY=; b=RBhIQN66WrM2sCfZIr2mg9WNJpQWO55tyv5n+H7yvOK6P+QdjqNziHJrtoNu492tkb QiPIBJIRHQB1HTSOCeehN52GyjY7aU8Xf8Xdj5XQMEoTaNAW3ugtFU1uu0AYKN2uu4Fy VUkv2t6Zm0uQJhLepY7a+4bd3X7MK9BM+EcRwxbtpjvI3OEpDB8+q+ABggx+hpTNKlMn nmmu9PjPW8CT1s7tnAfSdoEb5+TFqVGM0WLzuROjT21wOlV7oREdaP2AP8HWRRhfnYt4 2V5ky5XMjjlfRKRNGVElm7QABfripgx4O/oCYwkpnOCdoj9aiCZGuPiOLV1SQUWDkC21 7Dxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=oS+bBbsmd838Qwh5c6w1uptJLX3c+kxwiReiO6SZDMY=; b=GogisfezcliDybn8xNV/wwGa2Nt+rdZPLn6buAY255OiKu02hhzDk3/S4eYAmIY+15 4KCW0Zd40iStTwAOkXmU2N2RHRnPyzFcWEc0iotxZSOfpqBaw/rqWLs9bYBJ9az9+Dlh eMTmUa/n2jy1oM5esz3DWk+EVNnSzyp9iYK+BUiCOEUN4JxhIgwzDyh6Rvfn0XuLqUNK pcxF3BTdYmXvE+UICUEwt2HHQUJh9Fk09vbW7Xd/A0alRdahxcgYxoMf4WxBzxt2VErO S8a475NT+j3mLeydwi3FSSeiUHIUH8ymKu2X+99Gkw1dAqGS8pKs5xC9IMcBHHo2FGcy 2qZw== X-Gm-Message-State: AD7BkJIhXlacyhC4x4NtwpQx3SqAZOC2jpUmVimOYXYb1fxahIHtuJFyhjXMGTJcS5J8yA== X-Received: by 10.28.47.210 with SMTP id v201mr25153198wmv.56.1460465837453; Tue, 12 Apr 2016 05:57:17 -0700 (PDT) Received: from [192.168.0.1] (cag06-2-82-237-68-117.fbx.proxad.net. [82.237.68.117]) by smtp.gmail.com with ESMTPSA id w193sm23708191wmd.0.2016.04.12.05.57.16 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Apr 2016 05:57:16 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [Bug Report] mod_perl runs with GID 0 ! From: Ben RUBSON In-Reply-To: <201604121253.u3CCrp95026904@elvis.arl.psu.edu> Date: Tue, 12 Apr 2016 14:57:15 +0200 Content-Transfer-Encoding: 7bit Message-Id: <4119C1AF-3847-4340-90F5-4DC52CD05919@gmail.com> References: <88583F53-89D2-40AA-B850-CC819C5E60EC@gmail.com> <201604121253.u3CCrp95026904@elvis.arl.psu.edu> To: mod_perl list X-Mailer: Apple Mail (2.3124) >> Let's run the following example script in mod_perl : >> >> # more test.pl >> open(my $fh, ">", "/tmp/test.log"); >> print $fh "Your UID is " . $< . "\n"; >> my @groups = split '\s', $(; >> print $fh "You belong to these groups: "; >> print $fh $_ . " " foreach(@groups); > > How did you run the script? > I don't see the relevant section or directive from your > httpd.conf. Is it what you need ? Options ExecCGI AllowOverride None Require all granted Order Allow,Deny Allow from all SetHandler perl-script PerlHandler ModPerl::Registry Ben