Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!execu!sequoia!rpp386!jfh From: jfh@rpp386.cactus.org (John F Haugh II) Newsgroups: comp.unix.xenix.sco Subject: Re: whoami? Message-ID: <18871@rpp386.cactus.org> Date: 2 Jan 91 13:02:01 GMT References: <6537@crash.cts.com> <18865@rpp386.cactus.org> <1990Dec30.080938.21103@xenitec.on.ca> Reply-To: jfh@rpp386.cactus.org (John F Haugh II) Organization: Lone Star Cafe and BBS Service Lines: 14 X-Clever-Slogan: Recycle or Die. In article <1990Dec30.080938.21103@xenitec.on.ca> edhew@xenitec.on.ca (Ed Hew) writes: >Unless I'm missing something, why not simply > >if ( `logname` == "root" ) then logname doesn't say who you are =now=. the results of logname will be incorrect if you are su'd to/from a different user id. id always reports your current user name. -- John F. Haugh II UUCP: ...!cs.utexas.edu!rpp386!jfh Ma Bell: (512) 832-8832 Domain: jfh@rpp386.cactus.org "While you are here, your wives and girlfriends are dating handsome American movie and TV stars. Stars like Tom Selleck, Bruce Willis, and Bart Simpson."