Subject: Re: "Don't login as root, use the su command."
To: Christos Zoulas <firstname.lastname@example.org>
From: Manuel Bouyer <email@example.com>
Date: 02/11/2000 22:38:49
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