Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 1998 11:06:30 -0700
From:      Ian Kallen <ian@gamespot.com>
To:        Matthew Hagerty <matthew@wolfepub.com>, hackers@FreeBSD.ORG
Subject:   Re: Environment for a daemon
Message-ID:  <3.0.5.32.19980722110630.009f23d0@mail.gamespot.com>
In-Reply-To: <3.0.3.32.19980721151319.0072a5f0@wolfepub.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19980722110630.009f23d0>