From owner-freebsd-newbies Sun Aug 15 7:40:38 1999 Delivered-To: freebsd-newbies@freebsd.org Received: from tasam.com (tasam.com [206.161.83.22]) by hub.freebsd.org (Postfix) with ESMTP id 62798152FB; Sun, 15 Aug 1999 07:40:34 -0700 (PDT) (envelope-from korvus@tasam.com) Received: from localhost (korvus@localhost) by tasam.com (8.9.3/8.9.3) with ESMTP id KAA21636; Sun, 15 Aug 1999 10:38:10 -0400 (EDT) (envelope-from korvus@tasam.com) Date: Sun, 15 Aug 1999 10:38:10 -0400 (EDT) From: "Korvus [PINE]" To: dmp@aracnet.com Cc: Eric Hodel , Ng Kok Leong , freebsd-newbies@FreeBSD.ORG, freebsd-user-groups@FreeBSD.ORG Subject: Re: path In-Reply-To: <37B6C6B2.EF4010DB@aracnet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org i believe "su -" will work as well On Sun, 15 Aug 1999 dmp@aracnet.com wrote: > Eric Hodel wrote: > > > > Ng Kok Leong wrote: > > > > > > Hi, > > > > > > I am new to FreeBSD and currently I am working with FreeBSD3.2. > > > May I know where can I set the directory path so that I do not have > > > to go to the directory where the file resides in order to access it? > > > I have tried to set the PATH variable in the .profile file but this does > > > > If you are using sh, you can set your path in the .profile, but this > > will only run on a login shell. If you have root using the sh shell, it > > won't pick up the sbin directories if you su. > > The -l flag makes su behave like a login shell. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-newbies" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message