From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,96861dc88b0c4dd9,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-10-17 21:56:30 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!sol.ctr.columbia.edu!math.ohio-state.edu!cs.utexas.edu!uunet!munnari.oz.au!metro!seagoon.newcastle.edu.au!cc.newcastle.edu.au!sysnet From: sysnet@cc.newcastle.edu.au (David Morrison) Subject: su and LOGNAME on DEC OSF 1.3 Message-ID: <1993Oct18.130617.1@cc.newcastle.edu.au> Sender: news@seagoon.newcastle.edu.au Organization: University of Newcastle, AUSTRALIA Date: Mon, 18 Oct 1993 03:06:17 GMT 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.