/usr/xpg4/bin/id [ user ]
/usr/xpg4/bin/id -G [ -n ] [ user ]
/usr/xpg4/bin/id -g [ -nr ] [ user ]
/usr/xpg4/bin/id -u [ -nr ] [ user ]
If a user operand is provided and the process has the appropriate privileges, the user and group ID s of the selected user will be written. In this case, effective ID s will be assumed to be identical to real ID s. If the selected user has more than one allowable group membership listed in the group database, these will be written in the same manner as the supplementary groups described in the preceding paragraph.
"uid=%u(%s) gid=%u(%s)\n" <real user ID >, <user-name>, <real group ID >, <group-name>
If the effective and real user ID s do not match, the following will be inserted immediately before the \n character in the previous format:
" euid=%u(%s)"
with the following arguments added at the end of the argument list:
<effective user ID >, <effective user-name>
If the effective and real group ID s do not match, the following will be inserted directly before the \n character in the format string (and after any addition resulting from the effective and real user ID s not matching):
" egid=%u(%s)"
with the following arguments added at the end of the argument list:
<effective group-ID >, <effective group name>
If the process has supplementary group affiliations or the selected user is allowed to belong to multiple groups, the first will be added directly before the NEWLINE character in the format string:
" groups=%u(%s)"
with the following arguments added at the end of the argument list:
<supplementary group ID >, <supplementary group name>
and the necessary number of the following added after that for any remaining supplementary group ID s:
",%u(%s)"
and the necessary number of the following arguments added at the end of the argument list:
<supplementary group ID >, <supplementary group name>
If any of the user ID , group ID , effective user ID , effective group ID or supplementary/multiple group ID s cannot be mapped by the system into printable user or group names, the corresponding (%s) and name argument will be omitted from the corresponding format string.
When any of the options are specified, the output format will be as described under OPTIONS.