From owner-freebsd-questions Fri Oct 12 11:57:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from relay1.ntu-kpi.kiev.ua (www.ntu-kpi.kiev.ua [212.111.192.161]) by hub.freebsd.org (Postfix) with ESMTP id E6A2B37B401 for ; Fri, 12 Oct 2001 11:57:15 -0700 (PDT) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id 871AD2F083; Fri, 12 Oct 2001 21:57:08 +0300 (EEST) Received: from pm5149 (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.3/8.11.3) with SMTP id f9CItob20123; Fri, 12 Oct 2001 21:55:50 +0300 (EEST) Message-ID: <01e601c15346$7395d560$6d36120a@comsys.ntukpi.kiev.ua> From: "Andrey Simonenko" To: Cc: References: <3BC7240F.3CF37F7C@jwebmedia.com> Subject: Re: Permanently setenv Date: Fri, 12 Oct 2001 21:50:59 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: Joseph Koenig Newsgroups: lucky.freebsd.questions Sent: Friday, October 12, 2001 9:04 PM Subject: Permanently setenv > How do I set an environmental variable so that it stays around forever. > This is for a server, so I need to be there if the machine restarts and > even when no users are logged in at all. Thanks, > Set all needed environment variables in the configuration file for the shell each user used. Usualy, there are /etc/bashrc, /etc/tcsh, etc. which are included to ~/.bashrc, ~/.tcsh. /etc/ usually has "export" for Bash or "setenv" for C-shells commands. Look at manual pages for shells you and your users use and find appropriate shell configuration files. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message