From owner-freebsd-hackers Wed Jul 22 12:09:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA01975 for freebsd-hackers-outgoing; Wed, 22 Jul 1998 12:09:30 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.gamespot.com (ns2.gamespot.com [206.169.18.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA01859 for ; Wed, 22 Jul 1998 12:08:49 -0700 (PDT) (envelope-from ian@gamespot.com) Received: from noteeth (noteeth.gamespot.com [206.169.18.116]) by mail.gamespot.com (8.9.0/8.9.0) with SMTP id MAA05403; Wed, 22 Jul 1998 12:07:46 -0700 (PDT) Message-Id: <3.0.5.32.19980722110630.009f23d0@mail.gamespot.com> X-Sender: ian@mail.gamespot.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Wed, 22 Jul 1998 11:06:30 -0700 To: Matthew Hagerty , hackers@FreeBSD.ORG From: Ian Kallen Subject: Re: Environment for a daemon In-Reply-To: <3.0.3.32.19980721151319.0072a5f0@wolfepub.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You can get/set environment variables in your CGI and from Apache. Count the ways in which the environment can be manipulated.... http://www.apache.org/docs/mod/mod_env.html#passenv http://www.apache.org/docs/mod/mod_env.html#setenv http://www.apache.org/docs/mod/mod_setenvif.html#setenvif http://www.apache.org/docs/mod/mod_setenvif.html#SetEnvIfNoCase http://www.apache.org/docs/mod/mod_env.html#unsetenv -Ian At 03:13 PM 7/21/98 -0400, Matthew Hagerty wrote: >Greetings, > >What environment does a daemon get when it is run, then changes its uid? I >have a program that is being run as a cgi via apache and requires an >environment var set. Apache is started as root and changes to what ever >user you have set in the config. Then when my program (cgi) is run, it has >the uid of the user set in the config, but what about its environment? >Does it get initialized to the .profile settings just like a user logging >in? If not, where can I set up an environment for a program that gets >executed in this manner? > >FreeBSD-2.2.6-R > >Thanks, >Matthew > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-hackers" in the body of the message > > -- Ian Kallen ian@gamespot.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message