Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!rutgers!ucsd!nosc!crash!pnet01!jca From: jca@pnet01.cts.com (John C. Archambeau) Newsgroups: comp.unix.xenix.sco Subject: Re: whoami? Message-ID: <6685@crash.cts.com> Date: 3 Jan 91 16:36:40 GMT Sender: root@crash.cts.com Organization: People-Net [pnet01], El Cajon CA Lines: 26 mrm@sceard.Sceard.COM (M.R.Murphy) writes: >In article <6624@crash.cts.com> jca@pnet01.cts.com (John C. Archambeau) writes: >> >>I want the equivalent of whoami on BSD/SunOS for SCO Xenix that will work on >>both the Bourne and C Shells. >You could always try > > $ who am i > >like it says in the manual :-) I don't know if you're being funny or not. All who am i does is return your entry in /etc/utmp. This may not be your effective login user name. Case and point, logging in and executing an su, effective login name being root. // JCA /* **--------------------------------------------------------------------------* ** Flames : /dev/null | What to buy? ** ARPANET : crash!pnet01!jca@nosc.mil | EISA or MCA? ** INTERNET: jca@pnet01.cts.com | When will the bus wars end? ** UUCP : {nosc ucsd hplabs!hp-sdd}!crash!pnet01!jca **--------------------------------------------------------------------------* */