From owner-freebsd-questions Mon Oct 27 19:01:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA18663 for questions-outgoing; Mon, 27 Oct 1997 19:01:29 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from BIGFUN.vwcom.com (BIGFUN.vwcom.com [151.197.101.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA18658 for ; Mon, 27 Oct 1997 19:01:26 -0800 (PST) (envelope-from bmc@WillsCreek.COM) Received: from WillsCreek.COM (gw.willscreek.com [151.197.101.46]) by BIGFUN.vwcom.com (8.8.6/8.8.6) with ESMTP id VAA01562; Mon, 27 Oct 1997 21:42:48 -0500 (EST) Received: from current.willscreek.com (current.willscreek.com [172.16.87.1]) by WillsCreek.COM (8.8.5/8.8.5) with ESMTP id VAA05790; Mon, 27 Oct 1997 21:22:23 -0500 (EST) Received: (from bmc@localhost) by current.willscreek.com (8.8.5/8.8.5) id VAA00363; Mon, 27 Oct 1997 21:22:22 -0500 (EST) Date: Mon, 27 Oct 1997 21:22:22 -0500 (EST) Message-Id: <199710280222.VAA00363@current.willscreek.com> From: Brian Clapper MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Dean Cc: 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> References: <105494522@toto.iv> <199710251607.MAA10708@current.willscreek.com> <3.0.3.16.19971027170649.20f74e38@mail.thegrid.net> X-Mailer: VM 6.23 under Emacs 19.34.1 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Dean wrote: > >> Once root or any defined user logs in the message "Warning: imported > >> path contains relative components" appears. This looks more ominus. > >> Please help me determine what it's telling me and how I can fix it. > > > >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? Assuming you're using `csh' or `tcsh', it's only one of the right places. $HOME/.cshrc, $HOME/.tcshrc, /etc/csh.cshrc, and /etc/csh.login are all other files read by `tcsh', for example. The simplest way to tell is to look at the contents of $PATH before you invoke `su'. If there's a relative path in the $PATH setting, you'll get the warning. ----- Brian Clapper, bmc@WillsCreek.COM, http://WWW.WillsCreek.COM/ Generosity and perfection are your everlasting goals.