From owner-freebsd-hackers Tue Jul 21 12:07:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA18558 for freebsd-hackers-outgoing; Tue, 21 Jul 1998 12:07:07 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from firebat.wolfepub.com (firebat.wolfepub.com [206.250.193.44]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA18547 for ; Tue, 21 Jul 1998 12:07:01 -0700 (PDT) (envelope-from matthew@wolfepub.com) Received: from ricecake.fastnet0.net (grxa6-ppp13.triton.net [209.172.2.13]) by firebat.wolfepub.com (8.9.0/8.9.0) with SMTP id PAA15784 for ; Tue, 21 Jul 1998 15:05:02 -0400 (EDT) Message-Id: <3.0.3.32.19980721151319.0072a5f0@wolfepub.com> X-Sender: matthew@wolfepub.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Tue, 21 Jul 1998 15:13:19 -0400 To: hackers@FreeBSD.ORG From: Matthew Hagerty Subject: Environment for a daemon Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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