To print the user id (uid) and group id (gid), effective id (if different than the real id) and the supplementary groups.
$ id username
`id' prints information about the given user, or the process running it
if no user is specified.By default, it prints the real user ID, real group ID, effective user ID if different from the real user ID, effective group ID if
different from the real group ID, and supplemental group IDs. In addition,
if SELinux is enabled and the `POSIXLY_CORRECT' environment variable
is not set, then print `context=C', where C is the security context.
$ id username
`id' prints information about the given user, or the process running it
if no user is specified.By default, it prints the real user ID, real group ID, effective user ID if different from the real user ID, effective group ID if
different from the real group ID, and supplemental group IDs. In addition,
if SELinux is enabled and the `POSIXLY_CORRECT' environment variable
is not set, then print `context=C', where C is the security context.
No comments:
Post a Comment