|
|
HP-UX Reference Volume 1 of 5 > iid(1) |
|
NAMEid — print user and group IDs and names DESCRIPTIONThe 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 effective user ID of the process is superuser, the user and group IDs of the selected user are written. In this case, effective IDs are assumed to be identical to real IDs. OptionsThe following options modify the behavior described above.
EXAMPLESTo display the current user and group data: id produces: uid=1834(allanp) gid=20(users) To display the group ID number for the current process: id -g produces: 20 To display the group name for the current process: id -gn produces: users To display the user and group data for another user: id ralford produces: uid=329(ralford) gid=20(users) if the effective user ID of the process is superuser. Otherwise, it produces the data for the invoking process. SEE ALSOgroups(1), logname(1), getuid(2). HP Process Resource Manager: prmconfig(1), prmconf(4) in HP Process Resource Manager User's Guide. |
|