Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 1999 17:34:22 -0600
From:      Glenn Johnson <gjohnson@nola.srrc.usda.gov>
To:        Kit <kit@hypostasis.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Xterm,ssh and $PATH
Message-ID:  <19991130173422.A5634@symbion.srrc.usda.gov>
In-Reply-To: <19991130235946.A7182@amethyst.hypostasis.com>
References:  <19991130235946.A7182@amethyst.hypostasis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991130173422.A5634>