From owner-freebsd-questions@FreeBSD.ORG Tue Apr 8 18:11:28 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B47B1065672 for ; Tue, 8 Apr 2008 18:11:28 +0000 (UTC) (envelope-from bitbucket@stcinc.com) Received: from shell4.bayarea.net (shell4.BAYAREA.NET [209.128.82.1]) by mx1.freebsd.org (Postfix) with ESMTP id 6FA288FC0A for ; Tue, 8 Apr 2008 18:11:28 +0000 (UTC) (envelope-from bitbucket@stcinc.com) Received: (qmail 17428 invoked from network); 8 Apr 2008 10:43:50 -0700 Received: from h-66-166-74-34.snvacaid.covad.net (HELO bastion.simplifiedtechnology.com) (66.166.74.34) by ftp.stcinc.com with SMTP; 8 Apr 2008 10:43:49 -0700 From: Gregory To: freebsd-questions@freebsd.org Date: Tue, 8 Apr 2008 10:44:39 -0700 User-Agent: KMail/1.9.4 References: <20080408171819.GA56838@farnborough.darq.net> In-Reply-To: <20080408171819.GA56838@farnborough.darq.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804081044.39664.BitBucket@stcinc.com> Subject: Re: Setting global enviroment variables X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2008 18:11:28 -0000 If you are using sh, or a derived shell such as bash, then you can use /etc/profile to achieve your desired result. On Tuesday 08 April 2008 10:18, Andrew Cid wrote: > Hi all, > > What's the best way of setting environment variables on FreeBSD > so that all users and daemons running from rc can see them? > > I'd like to set PKGROOT to a custom package server, so that all users > and a couple of daemons that start from rc will use the new packages. > > Cheers, > > > Andrew