From owner-freebsd-questions Tue Oct 28 03:45:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA17056 for questions-outgoing; Tue, 28 Oct 1997 03:45:16 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from artorius.sunflower.com (artorius.sunflower.com [24.124.0.13]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA17048 for ; Tue, 28 Oct 1997 03:45:12 -0800 (PST) (envelope-from lists3@artorius.sunflower.com) Received: from artorius.sunflower.com (artorius.sunflower.com [24.124.0.13]) by artorius.sunflower.com (8.8.7/8.8.7) with SMTP id FAA16932; Tue, 28 Oct 1997 05:44:54 -0600 (CST) (envelope-from lists3@artorius.sunflower.com) Date: Tue, 28 Oct 1997 05:44:54 -0600 (CST) From: "Stephen D. Spencer" To: Dean cc: Brian Clapper , questions@FreeBSD.ORG Subject: Re: Warnings when root logs in to 2.2.2 In-Reply-To: <3.0.3.16.19971027170649.20f74e38@mail.thegrid.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 27 Oct 1997, Dean wrote: > > [...] > >This will typically happen when you su(1) to root and you have at least one > >non-absolute directory value (e.g., ".") in your PATH. It's generally > >considered a dangerous thing to have "." in your PATH if you're logged in > >as or su'd to "root". (Some consider it dangerous even if you're not > >"root".) Remove any such components from your PATH before you "su" to get > >rid of the complaint. > > I get the same problem, but I don't have any .'s in my path statement. I'm > looking in .login. Is that the right place? > Dean. > It depends on what shell you're using. Login and type the following: grep PATH .* That should give you an idea of where your active PATH statement is. Regards, Stephen ----------------------------------------------------------------------------- - Stephen Spencer finger gladiatr@artorius.sunflower.com for - - administrator PGP key. - - Sunflower Datavision http://www.sunflower.com - -----------------------------------------------------------------------------