Subject: Re: "Don't login as root, use the su command."
To: Manuel Bouyer <email@example.com>
From: David Brownlee <firstname.lastname@example.org>
Date: 02/12/2000 00:08:29
tcsh sets LOGNAME, so I'd ideally prefer something that works
for both csh and tcsh (hence the SU_FROM :)
On Fri, 11 Feb 2000, Manuel Bouyer wrote:
> On Fri, Feb 11, 2000 at 05:51:12PM +0000, Christos Zoulas wrote:
> > This is not a good idea.
> > LOGNAME will contain the original user's pw->pw_name as set by /usr/bin/login.
> > USER will containt the current user's pw->pw_name as set by /usr/bin/su.
> > If you overwrite LOGNAME you'll lose that information.
> It seems that 'su -' doesn't set LOGNAME. Maybe we could just check
> for LOGNAME == "root" then ?
> Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr