From owner-freebsd-questions Sat Oct 25 09:08:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA08683 for questions-outgoing; Sat, 25 Oct 1997 09:08:11 -0700 (PDT) (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 JAA08678 for ; Sat, 25 Oct 1997 09:08:05 -0700 (PDT) (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 MAA24290 for ; Sat, 25 Oct 1997 12:03:13 -0400 (EDT) Received: from current.willscreek.com (current.willscreek.com [172.16.87.1]) by WillsCreek.COM (8.8.5/8.8.5) with ESMTP id MAA28373 for ; Sat, 25 Oct 1997 12:07:55 -0400 (EDT) Received: (from bmc@localhost) by current.willscreek.com (8.8.5/8.8.5) id MAA10708; Sat, 25 Oct 1997 12:07:54 -0400 (EDT) Date: Sat, 25 Oct 1997 12:07:54 -0400 (EDT) Message-Id: <199710251607.MAA10708@current.willscreek.com> From: Brian Clapper MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: questions@FreeBSD.ORG Subject: Re: Warnings when root logs in to 2.2.2 In-Reply-To: <105494522@toto.iv> X-Mailer: VM 6.23 under Emacs 19.34.1 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Parker Brown wrote: > New (to me) with 2.2.2: > When I enter the uid root at the login prompt, I get the message > "login_getclass: unknown class 'root'". Is there something in /etc that > I can edit to correct this? This is a *very* frequently asked question; if you search the mailing list archives at www.freebsd.org, you'll see an almost innumerable number of replies on this subject. The short answer: See ftp://ftp.FreeBSD.org/pub/FreeBSD/2.2.2-RELEASE/ERRATA.TXT The less short answer (straight from ERRATA.TXT): o login as root produces "login_getclass: unknown class 'root'" on system console. Fix: If you have the source distribution installed, simply cp /usr/src/etc/login.conf /etc otherwise, get it from the FreeBSD FTP site using this URL: ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/etc/login.conf instead. Simply cd to /etc and then run fetch(1) with the provided URL. > 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. ----- Brian Clapper, bmc@WillsCreek.COM, http://WWW.WillsCreek.COM/ Let not the sands of time get in your lunch.