Since I am not sure what you are looking for I can only repeat what others
have stated.


Who - displays userid
Whoami - displays uid from lookup

> > see the whoami command description in z/OS UNIX System Services Command
Reference

Many have already indicated that perhaps some research would help you find
your answer.  Remember that the WHO and WHOAMI are provided.  I am not sure
you could modify them to do something different.  However, you may be able
to create your own command.

Review the manuals for USS and see if you can create your own commands to do
what you want.  USS in z/OS is not that much different than any other Unix
environment.  

Lizette


> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of venkat kulkarni
> Sent: Saturday, December 14, 2013 7:21 PM
> To: [email protected]
> Subject: Re: OMVS UID display
> 
> I looked at z/OS USS command reference but not able to find reason for
below
> output
> 
> $ id
> uid=12345 gid=996(FLTG)
> 
> $ whoami
> Error for uid: 12345
> 
> 1) In ID command, why I am not getting RACF user id along with UID
> 2) Why I am getting this error in WHOAMI command and also not showing RACF
> user id
> 
> 
> 
> 
> On Sat, Dec 14, 2013 at 4:55 AM, Scott Ford <[email protected]>
wrote:
> 
> > Maybe you should review the manual....this is from z/os USS command ref.
> >
> >
> > The whoami command displays a username associated with the effective
> > user ID, unlike the who am icommand which displays the login name.
> >
> > For example, if you login as 'user1' but then you use the su command
> > to change to 'user2':
> >
> > command returned who am I user1 whoami user2 For more information
> > about the whoami command, see the whoami command description in z/OS
> > UNIX System Services Command Reference.
> >
> >
> >
> > Scott ford
> > www.identityforge.com
> > from my IPAD
> >
> > 'Infinite wisdom through infinite means'
> >
> >
> > > On Dec 13, 2013, at 12:18 PM, venkat kulkarni <
> > [email protected]> wrote:
> > >
> > > Hello,
> > > When I  am trying to use WHOAMI command on omvs I am getting my UID
> > > displayed, but my requirement is to display userid as output of
> > > WHOAMI command.
> > >
> > > Can anyone one suggest where to make this change to display userid
> > inplace
> > > of UID for this command.
> > >

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to