Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: sysnet@cc.newcastle.edu.au (David Morrison)
Subject: su and LOGNAME on DEC OSF 1.3
Date: Mon, 18 Oct 1993 03:06:17 GMT	[thread overview]
Message-ID: <1993Oct18.130617.1@cc.newcastle.edu.au> (raw)

I have a problem with su on a DEC Alpha 300/400 and OSF 1.3 using csh and
tcsh. On other machines that I manage, I do not allow direct logins to root
from anywhere, but insist that people login to their own account then su to
root (only a few trusted people). As part of the process, .cshrc for root
checks who the original login was and may do some things for that particular
user. 

Under SunOS 4.1, doing su changes the environment variable USER to "root" but
leaves LOGNAME set to the original user. Under OSF/1 1.3, both USER and
LOGNAME are set to "root".

It almost looks as though a full login has been done, but all the aliases,
default directory, etc stay the same.

Is this a bug or feature?

Is there any other way I can find out who it was that executed the su?

BTW, what actually sets LOGNAME? None of the documentation I can find (login,
csh, su) mentions it.
--
David Morrison, Manager, Networks and Comms, Uni of Newcastle, Australia
sysnet@cc.newcastle.edu.au or (VAX PSI) psi%0505249626002::sysnet
Phone: +61 49 215397	Fax: +61 49 216910
Worry kills more people than work because more people worry than work.


                 reply	other threads:[~1993-10-18  3:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox