Date: Tue, 21 Jul 1998 15:13:19 -0400 From: Matthew Hagerty <matthew@wolfepub.com> To: hackers@FreeBSD.ORG Subject: Environment for a daemon Message-ID: <3.0.3.32.19980721151319.0072a5f0@wolfepub.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.3.32.19980721151319.0072a5f0>