|HP-UX Reference > I
id(1)HP-UX 11i Version 3: February 2007
id — print user and group IDs and names
The id command writes a message to standard output, giving the user and group IDs and names for the process. If the effective and real IDs are different, both are printed.
If the process has supplementary group affiliations (see groups(1)), the supplementary group affiliations are also written.
If the user operand is specified and the process has appropriate privileges, the user and group IDs of the selected user are written. In this case, effective IDs are assumed to be identical to real IDs. If the selected user has more than one allowable group membership listed in the group database, then the group membership information is written.
The following options modify the behavior described above.
The error codes returned by id are :
To display the current user and group data:
To display the group ID number for the current process:
To display the group name for the current process:
To display the user and group data for another user:
To display the PRM group ID for the current process:
uid=329(ralford) gid=20(users) prmid=1(OTHERS)
groups(1), logname(1), getuid(2).
HP Process Resource Manager: prmconfig(1), prmconf(4) in HP Process Resource Manager User's Guide.