Subject: Re: "Don't login as root, use the su command."
To: None <>
From: Alan Barrett <>
List: current-users
Date: 02/12/2000 12:21:12
On Sat, 12 Feb 2000, Geoff Adams wrote:
> So root's .login and .profile can simply check to see whether "$LOGNAME"
> equals "root".  If it's equal to something else, the user used 'su'.  Even
> 'su -' will work with this scheme, since it obliterates LOGNAME, leaving it
> set to nothing.  "" won't equal "root", so the message won't be printed.

The fact that "su -" obliterates LOGNAME is a bug.

--apb (Alan Barrett)