Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ whoami(1) — UTek 4.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

who(1)

su(1)



WHOAMI(1)               COMMAND REFERENCE               WHOAMI(1)



NAME
     whoami - print effective current user ID

SYNOPSIS
     whoami

DESCRIPTION
     The whoami command prints the effective user ID which is
     running the current process.  This command is different from
     the command who am i, which prints the name of the person
     logged in on the tty.

EXAMPLES
     The following shell script fragment prevents the user ID
     root from executing the command:

          #!/bin/sh
          if test 'root' = "`whoami`"
          then
               echo "This shell script may not be run by 'root'."
               exit 1
          fi
          ...

FILES
     /etc/passwd
               Name data base.

RETURN VALUE
     [NO_ERRS]      Command completed without error.

     [NP_ERR]       An error occurred that was not a system
                    error.  Execution terminated.

CAVEATS
     The user ID returned corresponds to who you are at that
     point in time.  So if you have used su(1) to substitute
     another user name, that name is returned.

SEE ALSO
     who(1) and su(1).














Printed 4/6/89                                                  1





































































%%index%%
na:288,92;
sy:380,162;
de:542,401;
ex:943,387;
fi:1330,123;
rv:1453,288;
ca:1741,254;
se:1995,127;
%%index%%000000000132

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026