From owner-freebsd-questions Tue Nov 30 15:34:41 1999 Delivered-To: freebsd-questions@freebsd.org Received: from symbion.srrc.usda.gov (symbion.srrc.usda.gov [199.133.86.40]) by hub.freebsd.org (Postfix) with ESMTP id DD56714D52 for ; Tue, 30 Nov 1999 15:34:32 -0800 (PST) (envelope-from gjohnson@nola.srrc.usda.gov) Received: (from glenn@localhost) by symbion.srrc.usda.gov (8.9.3/8.9.3) id RAA05715; Tue, 30 Nov 1999 17:34:22 -0600 (CST) (envelope-from glenn) From: Glenn Johnson Date: Tue, 30 Nov 1999 17:34:22 -0600 To: Kit Cc: questions@FreeBSD.ORG Subject: Re: Xterm,ssh and $PATH Message-ID: <19991130173422.A5634@symbion.srrc.usda.gov> References: <19991130235946.A7182@amethyst.hypostasis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <19991130235946.A7182@amethyst.hypostasis.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Nov 30, 1999 at 11:59:46PM +1300, Kit wrote: > Hi I have a feeling that this may well be a question with an > obvious answer. I am running 3.3 STABLE and Xfree86 3.3.5 (on > three machines) I have just tried setting up ssh to forward for > forwarding an xterm. However in the xterm I get my PATH set to > /home/kit/bin:/bin/:usr/local/bin:/usr/localbin (The doubling of > usr/localbin leads me to think that it might be being set in more than > one place.) This is not the same as the .profile or .login paths and > I can't find where it is set. > > Where would it be likely to be set and how can I change it? Apart > from /etc/profile /etc/login .profile and .login where is the $PATH > set? I am uncomfortable with the inclusion of the home/bin directory > and would like to be able to disable it for these types of session. I > am more uncomfortable with not knowing what the path is going to be. Look in /etc/login.conf under the appropriate class which is probably "default" in your case. There is a line to set the path there. After you are finished editing this file you should run 'cap_mkdb /etc/login.conf' Of course, your .login or .profile, depending on your shell, will override this during normal login. -- Glenn Johnson Technician USDA, ARS, SRRC New Orleans, LA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message