id displays the user name and group affiliations of the user who issued the command. Specifying a user argument on the command line displays the same information for the given user instead of the person invoking id. In this case, you require appropriate permissions.
uid=runum(username) gid=rgnum(groupname)
where runum is the user's real user ID
(UID) number, username is the user's real
user name, rgnum is the user's real group
ID (GID) number, and groupname is the user's
real group name.euid=eunum(euname)
where eunum is the effective user ID number
and euname is the effective user name. An
entry for effective group ID has the format: egid=egnum(egname)
where egnum is the effective group ID number
and egname is the effective group name.groups=gnum(groupname)
where gnumis
the user's supplemental group ID number and groupname is
the user's supplemental group name.id may also display the multilevel security label for the user's current address space. See z/OS Planning for Multilevel Security and the Common Criteria for more information about multilevel security.
See Localization for more information.
> id -M
SYSHIGH
See z/OS Planning for Multilevel Security and the Common Criteria for more information about multilevel security and seclabels.
POSIX.2, X/Open Portability Guide, UNIX System V.
logname