Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Oct 1997 12:07:54 -0400 (EDT)
From:      Brian Clapper <bmc@WillsCreek.COM>
To:        questions@FreeBSD.ORG
Subject:   Re: Warnings when root logs in to 2.2.2
Message-ID:  <199710251607.MAA10708@current.willscreek.com>
In-Reply-To: <105494522@toto.iv>

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



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