groups — Print Group Membership of User
Synopsis
/usr/bin/groups [user... ]
Description
The groups command prints on standard output the groups to which you or the optionally specified user belong. Each user belongs to a group specified in /etc/passwd and possibly to other groups as specified in /etc/group. Note that /etc/passwd specifies the numerical ID (gid) of the group. The groups command converts gid to the group name in the output.
Examples
The following example shows the groups for users winsor, ray, and des.
castle% groups winsor ray des
winsor : staff other sysadmin
ray : staff other sysadmin
des : staff sysadmin
castle%
Files
/etc/passwd | Password file. |
/etc/group | Group file. |
Attributes
See attributes(5) for descriptions ...
Get Solaris™ 7 Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.