>From z/OS unix command manual

1) whoami displays a user name associated with the effective user ID.
2) To display your login name, use who am i
3) who displays information about users who are logged into the system
4) id displays the user name and group affiliations of the user who issued
the command

But my outputs are totaly different

$ id
uid=12345 gid=996(FLTG)

$ whoami
Error for uid: 12345

$ who
VENKAT   ttyp0000             Dec 14 19:07

$ who am i
VENKAT@TST01   ttyp0000             Dec 14 19:07




On Sun, Dec 15, 2013 at 8:21 AM, Lizette Koehler <[email protected]>wrote:

> 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
>

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

Reply via email to